在WordPress后台页脚添加自定义内容

WordPress评论166阅读模式

将下面的代码添加到主题或者插件函数模板functions.php 中,即可替换默认的文字链接。

add_filter( 'admin_footer_text', 'custom_admin_footer_text' );
function custom_admin_footer_text( $default_text ) {
	return '<span id="footer-thankyou">Website developed by <a href="https://zmingcx.com">知更鸟</a><span> | Powered by <a href="http://www.wordpress.org">WordPress</a>';
}

很多主题和插件都在抢这个位置。

本站文章大部分始于原创,用于个人学习记录,可能对您有所帮助,仅供参考!

weinxin
我的微信
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
 
知更鸟
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

拖动滑块以完成验证