register_activation_hook for multiple functions
My approach to this would be to have a start_activation() method that calls the other methods. register_activation_hook( __FILE__, array( ‘my_plugin_loader’, ‘start_activation’ ) ); class my_plugin_loader { function start_activation() { $this->func1(); // or self::func1(); $this->func2(); // self::func2(); for static methods } function func1() { // do stuff } function func2() { // do other stuff } … Read more