Disable the global styles inline CSS in WordPress

Disable the global styles inline CSS in WordPress on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_action( 'wp_enqueue_scripts', 'remove_global_styles' );
function remove_global_styles(){
    wp_dequeue_style( 'global-styles' );
}