apply_filters( 'default_wp_template_part_areas', array[] $default_area_definitions )
- Since
- 5.9.0
Filters the list of allowed template part area values.
Compatibility
- WordPress
- since 5.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$default_area_definitionsarray[]- { The allowed template part area values.
@type array ...$0 { Data for the template part area.
@type string $area Template part area name.
@type string $label Template part area label.
@type string $description Template part area description.
@type string $icon Template part area icon.
@type string $area_tag Template part area tag.
} }...$0arrayData for the template part area.$areastringTemplate part area name.$labelstringTemplate part area label.$descriptionstringTemplate part area description.$iconstringTemplate part area icon.$area_tagstringTemplate part area tag.
Where this hook fires · 1
wp-includes/block-template-utils.php:120get_allowed_block_template_part_areas()
Source code
* @type string $description Template part area description. * @type string $icon Template part area icon. * @type string $area_tag Template part area tag. * } * } */ return apply_filters( 'default_wp_template_part_areas', $default_area_definitions );} /** * Returns a filtered list of default template types, containing their * localized titles and descriptions.Changelog
Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.