Reserved Terms in WordPress

Reserved terms are the set of key words in a WordPress. You should avoid this terms in your plugin or theme files. Because it leads to conflict with core functionality. So don’t use this reserved terms in following places.

  1. Passing a term through a $_GET or $_POST array
  2. Registering a taxonomy or post type slug
  3. Handling query variables

To learn more about WordPress reserved terms, please see

Enable revisions for custom post type in WordPress

When you register custom post type, you have to add support for revisions. Title and text editor is the default support. if you want to enable revisions for your custom post type then you have to add like this.

'supports' => array( 'title', 'editor', 'revisions' ),

Add this code in your custom post type creation arguments array. for your information i listed available supports below.


Have any doubt, then comment here!

Change the WooCommerce continue shopping URL in WordPress

If you want to change the WooCommerce continue shopping URL in WordPress, then place the place the following snippet in functions.php file within your theme folder!.

The WooCommerce continue shopping button will use your shop archive to send customers back to the shop page. The following code will redirect to home page when you click continue shopping button in your cart page.

function change_continue_shopping_button_url() {
	return site_url();	
add_filter( 'woocommerce_continue_shopping_redirect', 'change_continue_shopping_button_url' );

Have any doubt, then comment here!