Create a stored procedure on plugin activation

Question

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.

0
vedu 2 years 2020-01-10T08:39:19-05:00 0 Answers 76 views 0

Leave an answer

Browse
Browse