自从亿破姐开始使用WordPress来做网站后,在后台经常的出现 感谢使用WordPress进行创作。 4.9.1版本 这几个提示,亿破姐呢也是强迫症就百度找了方法如何移除后台底部版权和版本信息的方法跟大家分享一下、尤其是WordPress后台底部的两块,每个后台页面都存在,左侧是版权信息,右侧是WordPress版本号。接下来themebetter给大家提供一种解决方案,可以移除WordPress底部版权信息。

在主题的 functions.php 文件中加入以下代码(路径/wp-content/themes/主题/functions.php):
/**
* 移除WordPress后台底部左文字
* https://www.ypojie.com/351.html
*/
add_filter(‘admin_footer_text’, ‘_admin_footer_left_text’);
function _admin_footer_left_text($text) {
$text = ”;
return $text;
}
/**
* 移除WordPress后台底部右文字
* https://www.ypojie.com/351.html
*/
add_filter(‘update_footer’, ‘_admin_footer_right_text’, 11);
function _admin_footer_right_text($text) {
$text = ”;
return $text;
}
亿破姐这里使用的是notepad++来加入的代码 如下图:

本原创文章,转载请以链接形式标明本文地址
















