WordPress 后台底部默认会显示 WordPress 版本信息和版本号,如果用户可以访问后台,为了安全起见,WordPress 后台的底部版本可以做隐藏或修改等,也可以将版权信息做修改。
将下面的代码添加到主题的 functions.php 即可:
1 2 3 4 5 6 7 8 9 10 11 12 13 | //WORDPRESS后台底部的版权和版本信息修改 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 = "4.4.2版本"; return $text; } |