如何关闭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');
  • 我的微信
  • 有问题可随时与我联系
  • weinxin
  • 微信小程序
  • 随时随地查看文章
  • weinxin
ts小陈

发表评论(请规范评论)--评论需审核

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

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