Created
June 17, 2019 07:10
-
-
Save iamgabrielma/0bffc2e53b1b81629accb621378f95d9 to your computer and use it in GitHub Desktop.
Disables WPCOM masterbar
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