wppaste
WordPress

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.
} }
  • ...$0array

    Data for the template part area.
    • $areastring

      Template part area name.
    • $labelstring

      Template part area label.
    • $descriptionstring

      Template part area description.
    • $iconstring

      Template part area icon.
    • $area_tagstring

      Template 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.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 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.