Create DB Table On Activating WordPress Plugin
- Step 1 - Plugin Activation. Add the function to execute on activating the Plugin. I have used myplugin as the plugin name for demonstration purposes. <? ...
- Step 2 - Initialize DB Tables. Now update the function to create the database table on activating the WordPress Plugin as shown below. // Initialize DB Tables.