如何关闭WordPress后台主题和插件自动更新提醒

2021年12月30日15:55:46 发表评论
广告也精彩

将下面的代码放到您的主题functions.php中

如何关闭Wordpress后台主题和插件自动更新提醒

 

  1. add_filter('automatic_updater_disabled', '__return_true');
  2.    remove_action('init', 'wp_schedule_update_checks');
  3.    remove_action('wp_version_check', 'wp_version_check');
  4.    remove_action('wp_update_plugins', 'wp_update_plugins');
  5.    remove_action('wp_update_themes', 'wp_update_themes');
  6.    remove_action('admin_init', '_maybe_update_core');
  7.        remove_action('admin_init', '_maybe_update_plugins');
  8.        remove_action('admin_init', '_maybe_update_themes');


微信扫描下方的二维码阅读本文

ts小陈

发表评论(不允许含有网址!)

:?: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :cry: :mrgreen: :neutral: :razz:

已登录用户不需要填写以下内容