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

WordPress Disable Update Notifications for Specific Plugins

In certain situations, you might not need a specific plugin to check for updates. You can use the following WordPress code to disable update notifications for that particular plugin. You just need to modify the code below 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. Without 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.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the 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 QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: