Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

1

The function needs to be public, but it can also be static. For example, from the Akismet plugin: In the plugin file: register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) ); In the Akismet class file: public static function plugin_activation() { ... }


Top 50 recent answers are included