如何更改WordPress管理面板中的页脚。默认情况下,WordPress在WordPress管理区的Footer区域添加了自定义文本。如果你想改变下面的文字。
复制下面的代码并将其粘贴到functions.php文件的末尾。
<div id="crayon-5a6ece4745bed724201159-1" class="crayon-line"><span class="crayon-ta"><?php</span></div>
<div id="crayon-5a6ece4745bed724201159-2" class="crayon-line"></div>
<div id="crayon-5a6ece4745bed724201159-3" class="crayon-line"><span class="crayon-t">function</span> <span class="crayon-e">remove_footer_admin</span> <span class="crayon-sy">(</span><span class="crayon-sy">)</span> <span class="crayon-sy">{</span></div>
<div id="crayon-5a6ece4745bed724201159-4" class="crayon-line"></div>
<div id="crayon-5a6ece4745bed724201159-5" class="crayon-line"><span class="crayon-h"> </span><span class="crayon-k ">echo</span> <span class="crayon-s">'Powered by <a href="http://www.wordpress.org" target="_blank">WordPress</a> | WordPress</span></div>
<div id="crayon-5a6ece4745bed724201159-6" class="crayon-line"><span class="crayon-s"> Tutorials: <a href="https://www.freewebmentor.com" target="_blank">FreeWebMentor</a></p>'</span><span class="crayon-sy">;</span></div>
<div id="crayon-5a6ece4745bed724201159-7" class="crayon-line"></div>
<div id="crayon-5a6ece4745bed724201159-8" class="crayon-line"><span class="crayon-sy">}</span></div>
<div id="crayon-5a6ece4745bed724201159-9" class="crayon-line"></div>
<div id="crayon-5a6ece4745bed724201159-10" class="crayon-line"><span class="crayon-e">add_filter</span><span class="crayon-sy">(</span><span class="crayon-s">'admin_footer_text'</span><span class="crayon-sy">,</span> <span class="crayon-s">'remove_footer_admin'</span><span class="crayon-sy">)</span><span class="crayon-sy">;</span></div>
<div id="crayon-5a6ece4745bed724201159-11" class="crayon-line"></div>
<div id="crayon-5a6ece4745bed724201159-12" class="crayon-line"><span class="crayon-ta">?></span></div>
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/261082.html