get( 'Version' ) ); } /** * Register block styles. * * @since 0.9.2 */ function aiowb_register_block_styles() { $block_styles = array( 'core/columns' => array( 'columns-reverse' => __( 'Reverse', 'aiowb' ), ), 'core/group' => array( 'shadow-light' => __( 'Shadow', 'aiowb' ), 'shadow-solid' => __( 'Solid', 'aiowb' ), ), 'core/list' => array( 'no-disc' => __( 'No Disc', 'aiowb' ), ), 'core/quote' => array( 'shadow-light' => __( 'Shadow', 'aiowb' ), 'shadow-solid' => __( 'Solid', 'aiowb' ), ), 'core/social-links' => array( 'outline' => __( 'Outline', 'aiowb' ), ), ); foreach ( $block_styles as $block => $styles ) { foreach ( $styles as $style_name => $style_label ) { register_block_style( $block, array( 'name' => $style_name, 'label' => $style_label, ) ); } } } add_action( 'init', 'aiowb_register_block_styles' ); /** * Register block pattern categories. * * @since 1.0.4 */ function aiowb_register_block_pattern_categories() { register_block_pattern_category( 'aiowb-page', array( 'label' => __( 'Page', 'aiowb' ), 'description' => __( 'Create a full page with multiple patterns that are grouped together.', 'aiowb' ), ) ); register_block_pattern_category( 'aiowb-pricing', array( 'label' => __( 'Pricing', 'aiowb' ), 'description' => __( 'Compare features for your digital products or service plans.', 'aiowb' ), ) ); } add_action( 'init', 'aiowb_register_block_pattern_categories' );