[wp-hackers] Using WP Functions Within Plugin Classes

David Chait davebytes at comcast.net
Wed Mar 8 14:29:54 GMT 2006

if I recall, it isn't safe to test user login state until much later.

  add_action('plugins_loaded', 'my_plugin_init_fn');

to kick off anything related to pluggable_functions.php or potentially 
needing other plugins loaded for detection.


----- Original Message ----- 
From: "Mark Harwood" <mark at phunky.co.uk>
To: <wp-hackers at lists.automattic.com>
Sent: Wednesday, March 08, 2006 8:48 AM
Subject: [wp-hackers] Using WP Functions Within Plugin Classes

| Hi Guys,
| Wonder if you could help me with a little problem ive stumbled apon, im
| writing a new plugin for a Private Messaging System.
| Take a look at the code here - 
| As you can see theres nothing happening apart from running a check to
| see if the user is logged in. For some unknown reason
||is_user_logged_in() |refuses to run within the plugin class.
| Is there any reason for this? i guess im missing something stupidly 
| Many Thanks
| Mark 'Phunky' Harwood
| Founder of EuroCSS.NET
| _______________________________________________
| wp-hackers mailing list
| wp-hackers at lists.automattic.com
| http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list