Changeset 57644 for trunk/src/wp-includes/block-template-utils.php
- Timestamp:
- 02/16/2024 09:45:18 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r57627 r57644 175 175 176 176 /** 177 * Filters the list of template types.177 * Filters the list of default template types. 178 178 * 179 179 * @since 5.9.0 … … 249 249 * @access private 250 250 * 251 * @param string $template_type 'wp_template' or 'wp_template_part'.251 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 252 252 * @param string $slug Template slug. 253 253 * @return array|null { … … 306 306 * @access private 307 307 * 308 * @param string $template_type 'wp_template' or 'wp_template_part'.308 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 309 309 * @param array $query { 310 310 * Arguments to retrieve templates. Optional, empty by default. … … 521 521 * 522 522 * @param array $template_file Theme file. 523 * @param string $template_type 'wp_template' or 'wp_template_part'.523 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 524 524 * @return WP_Block_Template Template. 525 525 */ … … 926 926 * @type string $post_type Post type to get the templates for. 927 927 * } 928 * @param string $template_type 'wp_template' or 'wp_template_part'.928 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 929 929 * @return WP_Block_Template[] Array of block templates. 930 930 */ … … 947 947 * @type string $post_type Post type to get the templates for. 948 948 * } 949 * @param string $template_type 'wp_template' or 'wp_template_part'.949 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 950 950 */ 951 951 $templates = apply_filters( 'pre_get_block_templates', null, $query, $template_type ); … … 1052 1052 * 1053 1053 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1054 * @param string $template_type Optional. Template type :'wp_template' or 'wp_template_part'.1054 * @param string $template_type Optional. Template type. Either 'wp_template' or 'wp_template_part'. 1055 1055 * Default 'wp_template'. 1056 1056 * @return WP_Block_Template|null Template. … … 1067 1067 * or null to allow WP to run its normal queries. 1068 1068 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1069 * @param string $template_type Template type :'wp_template' or 'wp_template_part'.1069 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 1070 1070 */ 1071 1071 $block_template = apply_filters( 'pre_get_block_template', null, $id, $template_type ); … … 1113 1113 * @param WP_Block_Template|null $block_template The found block template, or null if there isn't one. 1114 1114 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1115 * @param array $template_type Template type:'wp_template' or 'wp_template_part'.1115 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 1116 1116 */ 1117 1117 return apply_filters( 'get_block_template', $block_template, $id, $template_type ); … … 1126 1126 * 1127 1127 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1128 * @param string $template_type Optional. Template type :'wp_template' or 'wp_template_part'.1128 * @param string $template_type Optional. Template type. Either 'wp_template' or 'wp_template_part'. 1129 1129 * Default 'wp_template'. 1130 1130 * @return WP_Block_Template|null The found block template, or null if there isn't one. … … 1141 1141 * or null to allow WP to run its normal queries. 1142 1142 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1143 * @param string $template_type Template type :'wp_template' or 'wp_template_part'.1143 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 1144 1144 */ 1145 1145 $block_template = apply_filters( 'pre_get_block_file_template', null, $id, $template_type ); … … 1175 1175 * @param WP_Block_Template|null $block_template The found block template, or null if there is none. 1176 1176 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1177 * @param string $template_type Template type :'wp_template' or 'wp_template_part'.1177 * @param string $template_type Template type. Either 'wp_template' or 'wp_template_part'. 1178 1178 */ 1179 1179 return apply_filters( 'get_block_file_template', $block_template, $id, $template_type ); … … 1185 1185 * @since 5.9.0 1186 1186 * 1187 * @param string $part The block template part to print. Use "header" or "footer".1187 * @param string $part The block template part to print. Either 'header' or 'footer'. 1188 1188 */ 1189 1189 function block_template_part( $part ) { … … 1219 1219 * 1220 1220 * @param string $path The path of the file in the theme. 1221 * @return Bool Whether this file is in an ignored directory.1221 * @return bool Whether this file is in an ignored directory. 1222 1222 */ 1223 1223 function wp_is_theme_directory_ignored( $path ) { … … 1348 1348 * @since 6.1.0 1349 1349 * 1350 * @param string $slugThe template slug to be created.1351 * @param bool ean $is_customOptional. Indicates if a template is custom or1350 * @param string $slug The template slug to be created. 1351 * @param bool $is_custom Optional. Indicates if a template is custom or 1352 1352 * part of the template hierarchy. Default false. 1353 1353 * @param string $template_prefix Optional. The template prefix for the created template.
Note: See TracChangeset
for help on using the changeset viewer.