- Timestamp:
- 10/17/2023 02:12:07 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyfour/functions.php
r56813 r56951 10 10 11 11 /** 12 * Register block Styles12 * Register block styles 13 13 */ 14 14 … … 166 166 167 167 add_action( 'init', 'twentytwentyfour_block_styles' ); 168 169 /** 170 * Register pattern categories. 171 */ 172 173 if ( ! function_exists( 'twentytwentyfour_pattern_categories' ) ) : 174 /** 175 * Register pattern categories 176 * 177 * @return void 178 * @since Twenty Twenty-Four 1.0 179 * 180 */ 181 function twentytwentyfour_pattern_categories() { 182 183 register_block_pattern_category( 184 'page', 185 array( 186 'label' => _x( 'Pages', 'Block pattern category' ), 187 'description' => __( 'A collection of full page layouts.' ), 188 ) 189 ); 190 } 191 endif; 192 193 add_action( 'init', 'twentytwentyfour_pattern_categories' );
Note: See TracChangeset
for help on using the changeset viewer.