remove_theme_support('block-templates'); (applied using the after_setup_theme hook with priority 20) doesn't appear to work when the plugin (v11.9.0) is in use.
Step-by-step reproduction instructions
Add the following code to the theme or a plugin
The template selector is still visible on the edit post screen.
Screenshots, screen recording, code snippet
add_action('after_setup_theme', 'sht_remove_block_template_support', 20);
function sht_remove_block_template_support() {
remove_theme_support('block-templates');
}
Environment info
WordPress 5.8.1
Gutenberg 11.9.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered:
Description
remove_theme_support('block-templates');
(applied using theafter_setup_theme
hook with priority 20) doesn't appear to work when the plugin (v11.9.0) is in use.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: