Skip to content

Instantly share code, notes, and snippets.

@mrkdevelopment
Last active August 25, 2023 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrkdevelopment/0fb0cb18e4c65bac6575250317f6a1b8 to your computer and use it in GitHub Desktop.
Save mrkdevelopment/0fb0cb18e4c65bac6575250317f6a1b8 to your computer and use it in GitHub Desktop.
Turn off default core block patterns
wp scaffold child-theme youtube-video --parent_theme=twentytwentythree
add_filter(
'block_editor_settings_all',
function( $settings ) {
$settings['enableOpenverseMediaCategory'] = false;
return $settings;
},
10
);
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