build_template_part_block_area_variations() – Returns an array of area variation objects for the template part block.
You appear to be a bot. Output may be restricted
Description
Returns an array of area variation objects for the template part block.
Usage
$array = build_template_part_block_area_variations();
Parameters
Returns
array Array containing the block variation objects.
Source
File name: wordpress/wp-includes/blocks/template-part.php
Lines:
1 to 19 of 19
function build_template_part_block_area_variations() { $variations = array(); $defined_areas = get_allowed_block_template_part_areas(); foreach ( $defined_areas as $area ) { if ( 'uncategorized' !== $area['area'] ) { $variations[] = array( 'name' => $area['area'], 'title' => $area['label'], 'description' => $area['description'], 'attributes' => array( 'area' => $area['area'], ), 'scope' => array( 'inserter' ), 'icon' => $area['icon'], ); } } return $variations; }