WordPress移除底部版权说明

WordPress移除底部版权说明

很多WordPress站点在使用过程中需要隐藏WordPress的字样,尤其是WordPress后台底部的两块,每个后台页面都存在,左侧是版权信息,右侧是WordPress版本号。接下来给大家提供一种解决方案,可以移除WordPress底部版权信息。

 

在主题的 functions.php 文件中加入以下代码:

/** * 移除WordPress后台底部左文字 * add_filter(‘admin_footer_text’, ‘_admin_footer_left_text’); function _admin_footer_left_text($text) { $text = ”; return $text; }

 

/** * 移除WordPress后台底部右文字 * add_filter(‘update_footer’, ‘_admin_footer_right_text’, 11); function _admin_footer_right_text($text) { $text = ”; return $text; }

 

WordPress移除底部版权说明

给TA打赏
共{{data.count}}人
人已打赏
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索