Last active
July 10, 2017 17:19
-
-
Save mdemrs/d43ef6a5271d6f4b0b2f to your computer and use it in GitHub Desktop.
wp: remove Wordpress version in footer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much. Some time we need to do the same for multisites and from here we could change a little something in your code to be like the following:
//Or hide it from everyone except admins function my_footer_shh() { if ( ! current_user_can('super_admin') ) { // 'update_core' may be more appropriate remove_filter( 'update_footer', 'core_update_footer' ); } } add_action( 'admin_menu', 'my_footer_shh' );
We can change the part of
if ( ! current_user_can('super_admin') )
to any other role like admin, editor, etc....Thank you again :)