esc_html__( 'Calmly', 'calmly' ), ) ); } add_action( 'init', 'calmly_register_block_patterns_category', 9 ); /** * Register block styles. * * @since 1.0.0 */ function calmly_register_block_styles() { $block_styles = array( 'core/list' => array( 'square' => esc_html__( 'Square', 'calmly' ), 'none' => esc_html__( 'None', 'calmly' ), ) ); 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', 'calmly_register_block_styles' ); // WooCommerce customizations. if ( class_exists( 'WooCommerce', false ) ) { require_once CALMLY_DIR . '/inc/woocommerce.php'; }