Created
October 16, 2020 09:09
-
-
Save wpgaurav/35854735b80df6707aa91ff9df3691ec to your computer and use it in GitHub Desktop.
Disable WordPress.com Toolbar in WordPress.com Business and Ecommerce Plans
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
<?php | |
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