Careers

How to stop automatic update of a plugin in WordPress

To stop the automatic updates for the “Woo Tabbed Category Product Listing” plugin in WordPress, you can use one of the following methods:

Method 1: Disable Updates via Plugin Filter (Code)

Add this code snippet to your theme’s functions.php file or a custom plugin:


/**
* Disable automatic updates for 'Woo Tabbed Category Product Listing' plugin
*/
add_filter( 'auto_update_plugin', 'disable_auto_updates_for_specific_plugin', 10, 2 );
function disable_auto_updates_for_specific_plugin( $update, $plugin ) {
if ( 'woo-tabbed-category-product-listing/woo-tabbed-category-product-listing.php' === $plugin ) {
return false;
}
return $update;
}

How it works:
This code hooks into WordPress’s auto_update_plugin filter and checks if the plugin being updated is “Woo Tabbed Category Product Listing”. If it is, it prevents the auto-update.

Method 2: Disable All Plugin Auto-Updates (Manual)

If you want to disable all plugin auto-updates (not recommended), add this to wp-config.php:

define( 'WP_AUTO_UPDATE_CORE', false ); // Disables core updates
define( 'AUTOMATIC_UPDATER_DISABLED', true ); // Disables all auto-updates

But this is not recommended as it affects security updates.

Verify Auto-Updates Are Disabled

  1. Go to WordPress Dashboard → Plugins.
  2. If auto-updates are disabled, you won’t see the “Enable auto-updates” link under the plugin name.

🔍 Confirm Before Using:

Make sure that the plugin slug is correct. This string:

woo-tabbed-category-product-listing/woo-tabbed-category-product-listing.php

should match the relative path from wp-content/plugins/ to the plugin’s main PHP file.

If unsure:

  1. Go to the wp-content/plugins folder.
  2. Find the folder for the plugin.
  3. Check for the main PHP file name used in that folder.

✅ Best Practices:

  • Add this to your child theme’s functions.php, or better, in a small custom plugin to avoid theme-based dependency.
  • If you’re managing multiple plugin update settings, consider centralizing them in a custom update manager plugin.

To completely disable updates for a specific plugin in WordPress — including removing it from update checks, so WordPress doesn’t even query for updates for that plugin — you’ll need to use both:

  1. auto_update_plugin filter (to stop automatic updates), and
  2. site_transient_update_plugins filter (to remove it from update checks).

✅ Final Working Code (Put in theme’s functions.php or custom plugin):

/**
* Fully disable updates for the 'Woo Tabbed Category Product Listing' plugin
*/
add_filter( 'auto_update_plugin', 'disable_auto_update_for_specific_plugin', 10, 2 );
function disable_auto_update_for_specific_plugin( $update, $plugin ) {
if ( $plugin === 'woo-tabbed-category-product-listing/woo-tabbed-category-product-listing.php' ) {
return false;
}
return $update;
}

add_filter( 'site_transient_update_plugins', 'remove_plugin_from_update_check' );
function remove_plugin_from_update_check( $value ) {
if ( isset( $value->response['woo-tabbed-category-product-listing/woo-tabbed-category-product-listing.php'] ) ) {
unset( $value->response['woo-tabbed-category-product-listing/woo-tabbed-category-product-listing.php'] );
return $value;
}

🧠 How It Works

  • auto_update_plugin: disables auto-updates for that plugin.
  • site_transient_update_plugins: filters the list of plugins that WordPress checks for updates — here, it removes your plugin from the list, so no check is made, and no update notice will show.

⚠️ Notes:

  • This prevents updates only through the WordPress update system — a manual update via FTP or another plugin manager will still be possible.
  • If you later want to re-enable updates, you’ll need to remove or comment out these functions.