Create table in database when activating plugin
I think you’re missing a comma after product_categoy_url varchar(500) NOT NULL then if still not working, be aware that register_activation_hook( __FILE__, ‘gg_create_table’); will work only if placed in the main plugin file, not in an included file. To execute the activation function from a different file you’ve to define in the main file: define(‘MY_PLUGIN_PATH’,__FILE__); than … Read more