Created
September 27, 2018 19:01
-
-
Save jamiemarsland/9efc01a21934977830d62d5054e4845e to your computer and use it in GitHub Desktop.
To add back the normal wordpress admin toolbar for wordpress.com users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function disable_wpcomtoolbar ( $modules ) { | |
if ( isset( $modules['masterbar'] ) ) { | |
unset( $modules['masterbar'] ); | |
} | |
return $modules; | |
} | |
add_filter( 'jetpack_get_available_modules', 'disable_wpcomtoolbar' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment