get_registered( $pattern_name ); if ( $pattern ) { unregister_block_pattern( $pattern_name ); } } } endif; if ( ! function_exists( 'aether_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * @since Assembler 1.0 * * @return void */ function aether_setup() { // Enqueue editor styles. add_editor_style( 'style.css' ); // Unregister Jetpack form patterns and core patterns bundled in WordPress. // Simple sites aether_unregister_patterns(); add_filter( 'wp_loaded', function () { // Atomic sites aether_unregister_patterns(); } ); // Remove theme support for the core and featured patterns coming from the Dotorg pattern directory. remove_theme_support( 'core-block-patterns' ); } endif; add_action( 'after_setup_theme', 'aether_setup' ); if ( ! function_exists( 'aether_styles' ) ) : /** * Enqueue styles. * * @since Assembler 1.0 * * @return void */ function aether_styles() { // Register theme stylesheet. wp_register_style( 'aether-style', get_stylesheet_directory_uri() . '/style.css', array(), wp_get_theme()->get( 'Version' ) ); // Enqueue theme stylesheet. wp_enqueue_style( 'aether-style' ); } endif; add_action( 'wp_enqueue_scripts', 'aether_styles' );