[wp-hackers] Plugin initialization and pluggable functions

Ryan Boren ryan at boren.nu
Tue May 10 18:45:08 GMT 2005


With the advent of pluggable-functions.php, plugins cannot assume that
all core functions are loaded when the plugin is first run (Notably
get_currentuserinfo).  Plugins that call get_currentuserinfo() or other
pluggable functions during init should probably do their init in
response to the 'plugins_loaded' or 'init' actions rather than at plugin
load time.

Ryan




More information about the wp-hackers mailing list