Here some useful activation and update hooks. <?php add_action( ‘upgrader_process_complete', ‘some_plugin_upgrade_completed', 10, 2 ); function some_plugin_upgrade_completed( $upgrader_object, $options ) { // The path to our plugin's main file...
There are plenty of times you need to create extra database tables for storing data within WordPress. Sometimes a scope of an addon has changed and you need to modify the table. Using dbDelta within WordPress can allow you to modify the table without having to use...
Here is the code sample of what is required for developing a plugin. This needs to go into the main php file within the plugin folder. <?php /* Plugin Name: WordPress.org Plugin Plugin URI: https://developer.wordpress.org/plugins/the-basics/ Description: Basic...
Here are the useful commands for SVN. Using Subversion | Plugin Developer Handbook | WordPress Developer Resources SVN, or Subversion, is a version control system similar to Git. It can be used via command line, or one of numerous GUI applications, such as Tortoise...
How to Manage WordPress From the Command Line with WP-CLI – Nelio Software Published in WordPress. Earlier this month I shared a post on how to install, configure, and use Docker in local WordPress development. The main advantage of Docker was its containers:...