default_wp_template_part_areas WordPress Filter Hook

The default_wp_template_part_areas hook is used to specify the default areas for template parts in WordPress. By default, template parts are placed in the "content" area. This hook allows you to change the default placement of template parts, or add new areas for template parts.

apply_filters( 'default_wp_template_part_areas', array $default_area_definitions ) #

Filters the list of allowed template part area values.


Parameters

$default_area_definitions

(array)An array of supported area objects.


Top ↑

Source

File: wp-includes/block-template-utils.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.