This file contains hidden or 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 | |
| /** | |
| * Disable block editor for widgets and enable classic widget editor. | |
| * | |
| * @since 1.0.0 | |
| * @return void | |
| */ | |
| function disable_block_editor_for_widgets() { | |
| remove_theme_support( 'widgets-block-editor' ); |
This file contains hidden or 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 | |
| /** | |
| * Disable Gutenberg editor for post types. | |
| * | |
| * @param bool $use_block_editor Whether to use the block editor. | |
| * @param string $post_type The post type being edited. | |
| * @return bool | |
| */ | |
| function disable_gutenberg( $use_block_editor, $post_type ) { |
OlderNewer