-
-
Save mrkdevelopment/0fb0cb18e4c65bac6575250317f6a1b8 to your computer and use it in GitHub Desktop.
Turn off default core block patterns
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
wp scaffold child-theme youtube-video --parent_theme=twentytwentythree |
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
add_filter( | |
'block_editor_settings_all', | |
function( $settings ) { | |
$settings['enableOpenverseMediaCategory'] = false; | |
return $settings; | |
}, | |
10 | |
); |
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
if ( ! function_exists( 'custom_setup' ) ) { | |
/** | |
* Sets up theme defaults and registers support for various WordPress features. | |
* | |
* Note that this function is hooked into the after_setup_theme hook, which | |
* runs before the init hook. The init hook is too late for some features, such | |
* as indicating support for post thumbnails. | |
* | |
* @since 0.8.0 | |
* | |
* @return void | |
*/ | |
function custom_setup() { | |
// Remove core block patterns. | |
remove_theme_support( 'core-block-patterns' ); | |
} | |
} | |
add_action( 'after_setup_theme', 'custom_setup' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment