How do I disable the toolbar?

Additionally, this code that I used to disable this ‘masterbar’, isn’t working as well.

function disable_wpcomtoolbars ( $modules ) {
    if ( isset( $modules['masterbar'] ) ) {
      unset( $modules['masterbar'] );
    return $modules;
add_filter( 'jetpack_get_available_modules', 'disable_wpcomtoolbars' );

Looks like this code was conflicting.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here