[wp-hackers] Activate Action not Working?

Computer Guru computerguru at neosmart.net
Fri Apr 27 08:17:18 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

DD32 wrote:
> remember its being passed as a string, not a reference.
> "self::init_database" will be to call the function init_database within
> the class that the plugin is activated in, "self" will no longer refer
> to the object it did when you added the action.
> I think the syntax you'll want is:
> add_action('activate_DonationTracker.php',
> array('DonationTracker','init_database') );
> 

Awesome!
Thanks :)

- --
Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGMbGN3SICh4XKUt0RAq3IAKCGGuz1QDwSjvDWbzsjgpJCLMSXfwCgmuw0
SxIN0iS4BITGFzf3MKf3URM=
=SDDL
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list