wordpress plugin trigger function while installing plugin

wordpress Plugin activation hook

class MyPlugin {
     static function install() {
     // do not generate any output here
     }
}
register_activation_hook( __FILE__, array( ‘MyPlugin’, ‘install’ ) );

http://codex.wordpress.org/Function_Reference/register_activation_hook
Author: bm on January 20, 2014
Category: wordpress
Tags: ,

Your comment:

Your Name

Comment:




Last articles