是否有人知道如何刪除名爲「更新」的菜單鏈接,位於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;"));
謝謝
西普里安