How to run a plugin function when a plugin is activated – WordPress

<?php
 //The function "register_activation_hook" allow you
 // to run a plugin function  when the plugin is activated.
 register_activation_hook(__FILE__ , $function);
?>
Share

Leave a Reply

Your email address will not be published. Required fields are marked *