Can I disable update notification only for certain plugins in wordpress?

xeric

Member
Apr 5, 2019
93
21
8
I am using some nulled plugins on my personal site and the update notification is really annoying. Is there any way that I can disable the update notification but only for nulled plugins?
 

xeric

Member
Apr 5, 2019
93
21
8
Yeah i was aware of the solution that blocks it for all plugins. Was really hoping there's something that will work only for specific plugins. Really annoying looking at update notifications
 

frizzel

Well-known member
Trusted Uploader
Jun 13, 2019
485
253
63
Wherever my imagination takes me
With this plug-in you can select which plug-ins are in 'local development' and then not display update notices:
 

frizzel

Well-known member
Trusted Uploader
Jun 13, 2019
485
253
63
Wherever my imagination takes me
Or with a bit of code in functions.php:

PHP:
 function disable_plugin_updates( $value ) {

    $pluginsToDisable = [
        'plugin-folder/plugin.php',
        'plugin-folder2/plugin2.php'
    ];

    if ( isset($value) && is_object($value) ) {
        foreach ($pluginsToDisable as $plugin) {
            if ( isset( $value->response[$plugin] ) ) {
                unset( $value->response[$plugin] );
            }
        }
    }
    return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );
 

basiccomputerk

New member
Aug 6, 2022
0
0
0
www.basiccomputerknowledge.in
Or with a bit of code in functions.php:

PHP:
 function disable_plugin_updates( $value ) {

    $pluginsToDisable = [
        'plugin-folder/plugin.php',
        'plugin-folder2/plugin2.php'
    ];

    if ( isset($value) && is_object($value) ) {
        foreach ($pluginsToDisable as $plugin) {
            if ( isset( $value->response[$plugin] ) ) {
                unset( $value->response[$plugin] );
            }
        }
    }
    return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );
This was an easy fix for me to hide an annoying update, thanks!
 

Zer01ne

Well-known member
Mar 21, 2020
1,373
3,428
120
Or with a bit of code in functions.php:

PHP:
 function disable_plugin_updates( $value ) {

    $pluginsToDisable = [
        'plugin-folder/plugin.php',
        'plugin-folder2/plugin2.php'
    ];

    if ( isset($value) && is_object($value) ) {
        foreach ($pluginsToDisable as $plugin) {
            if ( isset( $value->response[$plugin] ) ) {
                unset( $value->response[$plugin] );
            }
        }
    }
    return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );
I was trying to post this code.
Thanks anyways.
 

Latest posts

Forum statistics

Threads
69,226
Messages
908,435
Members
237,020
Latest member
babahack1

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu