Wordpress How to run a plugin function when a plugin is activated – WordPress April 7, 2011 Pramod T P Leave a comment <?php //The function "register_activation_hook" allow you // to run a plugin function when the plugin is activated. register_activation_hook(__FILE__ , $function); ?>