简体   繁体   English

在WordPress管理菜单上隐藏“更新”项目

[英]Hide “Update” item on wordpress admin menu

I'm trying to hide this item in the admin: 我正在尝试在管理员中隐藏该项目:

在此处输入图片说明

I have already removed the updated message using this: 我已经使用以下命令删除了更新后的消息:

add_action('admin_menu','wphidenag');
    function wphidenag() {
remove_action( 'admin_notices', 'update_nag', 3 );
}

But I haven't found a solution to this item, any ideas to do it the proper way, not with css? 但是我还没有找到解决这个问题的办法,有没有办法以正确的方式来解决这个问题,而不是使用CSS?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM