The wordpress automatic updates and tips off method

wordpress website background, will have automatic updates and tips if you want to hide on the need to increase the function of the subject function inside.

wordpress automatic update

code show as below:

PHP
add_filter('pre_site_transient_update_core',create_function('$a',"return null;")); // 关闭核心提示 add_filter('pre_site_transient_update_plugins',create_function('$a',"return null;")); // 关闭插件提示 add_filter('pre_site_transient_update_themes',create_function('$a',"return null;")); // 关闭主题提示 remove_action('admin_init','_maybe_update_core');// 禁止 WordPress 检查更新 remove_action('admin_init','_maybe_update_plugins');// 禁止 WordPress 更新插件 remove_action('admin_init','_maybe_update_themes'); // 禁止 WordPress 更新主题

 

The new wordpress has automatic update function, as long as the host supports can be updated automatically.

If you want to turn off automatic updates, you need to modify the wordpress configuration functions: wp-config.php

PHP
define('AUTOMATIC_UPDATAR_DISABLED',true);

Guess you like

Origin www.cnblogs.com/app456/p/11858412.html