移除WordPress后台“显示选项”和“帮助”选项卡

先定位到wordpress主题theme下的function.php 代码,再在该文件的最后,写上如下代码:

//移除Wordpress后台“显示选项”和“帮助”选项卡
function remove_screen_options(){ return false;}
add_filter(‘screen_options_show_screen’, ‘remove_screen_options’);
add_filter( ‘contextual_help’, ‘wp_remove_help’, 999, 3 );
function wp_remove_help($old_help, $screen_id, $screen){
$screen->remove_help_tabs();
return $old_help;

保存即可。

本文来自投稿,不代表博客主立场,如若转载,请注明出处:https://www.bokezhu.com/2018/07/25/232.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
哇塞的头像哇塞认证作者
上一篇 2018/07/25 02:13
下一篇 2018/07/29 23:57

相关推荐

发表回复

登录后才能评论