Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable WordPress.com Toolbar in WordPress.com Business and Ecommerce Plans
<?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