隐藏wordpress版本号和顶部admin bar管理工具

隐藏版本号:

functions.php中加入以下代码:

function wpbeginner_remove_version() {return '';}

add_filter('the_generator', 'wpbeginner_remove_version');

 

隐藏admin bar:

functions.php中加入以下代码:

function hide_admin_bar($flag) {return false;}
add_filter('show_admin_bar','hide_admin_bar');

 



Leave a Reply

Your email address will not be published. Required fields are marked *

*