Last active
October 10, 2022 17:49
-
-
Save andymagill/955e9f744ead81a949a9e54a8e7e8118 to your computer and use it in GitHub Desktop.
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
// remove terrible experimental layout support | |
remove_filter( 'render_block', 'wp_render_layout_support_flag', 10, 2 ); | |
function understrap_experimental_layout( $metadata ) { | |
if ( !empty($metadata['supports']['__experimentalLayout'])) { | |
$metadata['supports']['__experimentalLayout'] = false; | |
} | |
return $metadata; | |
} | |
add_filter( 'block_type_metadata', 'understrap_experimental_layout', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment