Created
April 29, 2021 14:23
Remove block-templates support from Gutenberg.
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 | |
// Drop the below in theme functions.php. | |
add_action( 'after_setup_theme', function() { | |
remove_theme_support( 'block-templates' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't appear to have any effect with the current Gutenberg plugin active. Is there an updated alternative?