是否有人知道如何删除名为“更新”的菜单链接,位于WordPress管理菜单的“控制面板”部分下?从Wordpress管理控制台删除“更新”链接
我增加了以下措施&过滤器,阻止核心,主题&插件更新,但菜单链接仍然存在,虽然没有什么更新:
# Disable WP>3.0 core updates
add_filter('pre_site_transient_update_core', create_function('$a', "return null;"));
# Disable WP>3.0 plugin updates
remove_action('load-update-core.php', 'wp_update_plugins');
add_filter('pre_site_transient_update_plugins', create_function('$a', "return null;"));
# Disable WP>3.0 theme updates
remove_action('load-update-core.php', 'wp_update_themes');
add_filter('pre_site_transient_update_themes', create_function('$a', "return null;"));
# disable edit plugin and theme files:
define('DISALLOW_FILE_EDIT',true);
# disable core updates:
add_filter('pre_site_transient_update_core', create_function('$a', "return null;"));
谢谢
西普里安