腾讯云服务器优惠活动华纳云香港服务器

如何屏蔽/自定义WordPress后台的版权和版本信息?

WordPress主题推荐

WordPress 后台底部左侧默认显示“感谢使用 WordPress 进行创作。”的版权,右侧默认显示 WordPress 版本号,如果想隐藏这个 WordPress 版权及版本号,只需要将下面代码添加到当前主题 functions.php 中即可:

// 屏蔽后台页脚 WordPress 版权及版本号
function change_footer_admin () {return '';}
add_filter('admin_footer_text', 'change_footer_admin', 9999);
function change_footer_version() {return '';}
add_filter( 'update_footer', 'change_footer_version', 9999);

以上代码来自@知更鸟

如果想自定义这个 WordPress 版权及版本号,只需要将下面代码添加到当前主题 functions.php 中,并对版权信息及版本号进行修改即可:

/**
* 自定义 WordPress 后台底部的版权和版本信息
* https://www.wpdaxue.com/change-admin-footer-text.html
*/
add_filter('admin_footer_text', 'left_admin_footer_text');
function left_admin_footer_text($text) {
// 左边信息
$text = '<span id="footer-thankyou">感谢使用<a href="http://cn.wordpress.org/">WordPress</a>进行创作</span>';
return $text;
}
add_filter('update_footer', 'right_admin_footer_text', 11);
function right_admin_footer_text($text) {
// 右边信息
$text = "3.6.1 版本";
return $text;
}

以上代码来自@WordPress 大学

相关阅读

本文地址:https://boke112.com/post/4959.html

赞 (4) 打赏
版权声明:本文内容来源于互联网资源,由 boke112百科 整理汇总!发布此文是出于传递更多信息之目的,若有来源标注错误或侵犯了您的合法权益,请联系我们,确认后马上更正或删除,谢谢!
香港云主机55元/年
wu