I want to know that is it possible to fire a stored procedure once the plugin is activated?
//action hook for plugin activation
register_activation_hook( __FILE__, 'my_func' );
//function to create stored procedure
function my_func()
{
//code goes here to create a stored procedure
}
Any help would be appreciated. Thank you.