前言
下载的wordpress左上角都会有一个W和感谢使用wordpress创作,如果有不喜欢的程序猿,也可以使用下面的代码去除。
使用方法:
将以下代码复制到当前使用主题的function.php里面,刷新一下页面即可。
//移除左上角Wfunction annointed_admin_bar_remove() {global $wp_admin_bar;/* Remove their stuff */$wp_admin_bar->remove_menu('wp-logo');}add_action('wp_before_admin_bar_render', 'annointed_admin_bar_remove', 0);//移除Wordpress后台“感谢使用wordpress创作”function my_admin_footer_text(){return "";}function my_update_footer(){return "";}add_filter( 'admin_footer_text', 'my_admin_footer_text', 10 );add_filter( 'update_footer', 'my_update_footer', 50 );
如果在学习wordpress有不懂的地方可以互相留言,我也会尽力给大家提供帮助。