🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

Disable update notifications for specific WordPress plugins

In certain situations, you may not need a specific plugin to check for updates. You can use the following WordPress code to disable update notifications for specific plugins. You just need to modify the following code and add it to your theme's functions.php file.Safe method to add code to the functions.php file: Code Snippets
//屏蔽插件更新通知 https://blog.naibabiji.com/skill/wordpress-jin-zhi-cha-jian-geng-xin-ti-xing.html

function wcr_remove_update_notifications($value) {
    // 要屏蔽的插件位置 (从wp-content/plugins文件夹下)
    $plugins = array(
        'wpjam-basic/wpjam-basic.php'
    );
    
    foreach ($plugins as $key => $plugin) {
        if (empty($value->response[$plugin])) {
            continue;
        }
        
        unset($value->response[$plugin]);
    }
    
    return $value;
}

add_filter('site_transient_update_plugins', 'wcr_remove_update_notifications');
Of course, keeping plugins updated isone of the WordPress security factors.Unless for a specific reason, do not arbitrarily disable update notifications.Related articles:

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step instead.

「Naibabiji WordPress Website Building Coaching」 — From selecting a domain and purchasing hosting to installing themes and publishing posts, I「ll guide you through every step, helping you avoid detours and reach your goals directly.

👉 Learn about Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan to Follow