__( 'Spearhead', 'spearhead' ) ) ); } /** * Register Block Patterns. */ if ( function_exists( 'register_block_pattern' ) ) { register_block_pattern( 'spearhead/related-posts', array( 'title' => __( 'Related Posts', 'spearhead' ), 'categories' => array( 'spearhead' ), 'content' => '
Related
', ) ); register_block_pattern( 'spearhead/archive-page', array( 'title' => __( 'Archive page', 'spearhead' ), 'categories' => array( 'spearhead' ), 'content' => '' . __( 'Latest Posts', 'spearhead' ) . '
' . __( 'Categories', 'spearhead' ) . '
', ) ); register_block_pattern( 'spearhead/podcast-links', array( 'title' => __( 'Podcast links', 'spearhead' ), 'categories' => array( 'spearhead' ), 'content' => '' . __( 'Podcast available on:', 'spearhead' ) . '
', ) ); register_block_pattern( 'spearhead/podcast-links-list', array( 'title' => __( 'Podcast links list', 'spearhead' ), 'categories' => array( 'spearhead' ), 'content' => 'Apple •Breaker •Google •LinkedIn •Overcast •Spotify •Twitter •YouTube
', ) ); } /** * Unregister SeedletBlock Pattern Category. */ if ( function_exists( 'unregister_block_pattern_category' ) ) { unregister_block_pattern_category( 'seedlet' ); } /** * Unregister Block Patterns from Seedlet. */ if ( function_exists( 'unregister_block_pattern' ) ) { unregister_block_pattern( 'seedlet/group-split-background' ); unregister_block_pattern( 'seedlet/group-image-overlap' ); unregister_block_pattern( 'seedlet/latest-posts-alternating-grid' ); } } endif; add_action( 'after_setup_theme', 'spearhead_register_block_patterns', 12 );