Display Sql query that ran in wp_query
If you ran a query based on WP_Query, the query is executed with wp_query and result will be displayed by wordpress loop. And the executed query will be printed by {$query->request}. Example : Output...
Wordpress plugin development
If you ran a query based on WP_Query, the query is executed with wp_query and result will be displayed by wordpress loop. And the executed query will be printed by {$query->request}. Example : Output...
Just as there is an activation function, there is also a deactivation function. This is called the register_deactivation_hook() function. This function is triggered when your plugin is deactivated in the WordPress Plugins screen. This...
Some plugins have compatibility issued with various wordpress versions. So if you have to check the current version of wordpress while activating your plugin and also deny installation in some lower wordpress versions you...
The plugin header is the only requirement for a plugin to function in WordPress. The plugin header is a PHP comment block located at the top of your primary plugin PHP file. This comment...
Another important step to a professional plugin is maintaining a clean folder structure, which pertains to keeping all similar files together. For example, if your plugin requires JavaScript files,create a /js folder and store...
One of the main reasons WordPress is such a popular software platform is the ease with which it can be extended. Plugins are the primary reason for this and allow almost endless possibilities in...