Skip to main content
Login Join
Snippet · PHP

Disable WordPress Automatic Updates for Plugins

Shared by Amit Dholiya · September 17, 2026 · @auto_update_plugin

3 views
1 upvote
Back to Snippets

If you want full control over when plugins are updated, you can disable WordPress automatic plugin updates with a simple filter.

Steps

  1. Add the code below to your theme’s functions.php.
  2. Save the file.
  3. WordPress will stop automatically updating plugins.
/**
 * Disable automatic plugin updates
 */
function custom_disable_plugin_auto_updates( $update, $plugin ) {
    return false;
}

add_filter(
    'auto_update_plugin',
    'custom_disable_plugin_auto_updates',
    10,
    2
);
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments