사이트 내 전체검색
wordpress
우측 워드프레스링크 삭제하기
로빈아빠
https://cmd.kr/wp/14 URL이 복사되었습니다.

본문

wp-includes/default-widgets.php 

 

 

 

Suppressing “Powered by WordPress”

A long time ago, I published patch files that would defang the Browse Happy function and remove the “Powered by WordPress” branding from the Meta widget.

It’s rare that WordPress make it easier to simplify things, but as of version 3.6, the Meta hack is no longer necessary. Simply pop this line into any theme or plugin that you’ve written:

add_filter('widget_meta_poweredby', create_function('$a', 'return "";'));

The WordPress documentation shows the standard use of the filter, where one creates a function and uses it as a filter. In this case, we just want to empty the damned thing out, so a stub function with an empty return works fine. 

댓글목록

등록된 댓글이 없습니다.

wordpress
43 (1/1P)

Search

Copyright © Cmd 명령어 3.15.25.32