[wp-hackers] wp_die vs hooking into admin_notices

fris fris at fris.net
Fri Jan 28 20:16:35 UTC 2011

How would that go? I don't want the plugin activated if they don't have
certain things installed.

-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Peter Westwood
Sent: Friday, January 28, 2011 12:55 PM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] wp_die vs hooking into admin_notices

On 28 Jan 2011, at 17:41, Ozh wrote:

> The best way would be not to rely on curl but use the HTTP API instead.
> http://codex.wordpress.org/HTTP_API

And the second thing is not to abuse an activation hook like this.

If your plugin needs something check in in code run on admin_init and
display an admin_notice.

Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com C53C F8FC 8796 8508 88D6
C950 54F4 5DCD A834 01C5

wp-hackers mailing list
wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list