WP_Theme_JSON::get_block_selectors( object $block_type, string $root_selector ): array

In this article

Returns the selectors metadata for a block.

Parameters

$block_typeobjectrequired
The block type.
$root_selectorstringrequired
The block’s root selector.

Return

array The custom selectors set by the block.

Source

	return null;
}

$unit            = '%' === $spacing_scale['unit'] ? '%' : sanitize_title( $spacing_scale['unit'] );
$current_step    = $spacing_scale['mediumStep'];
$steps_mid_point = round( $spacing_scale['steps'] / 2, 0 );
$x_small_count   = null;
$below_sizes     = array();
$slug            = 40;
$remainder       = 0;

for ( $below_midpoint_count = $steps_mid_point - 1; $spacing_scale['steps'] > 1 && $slug > 0 && $below_midpoint_count > 0; $below_midpoint_count-- ) {
	if ( '+' === $spacing_scale['operator'] ) {
		$current_step -= $spacing_scale['increment'];
	} elseif ( $spacing_scale['increment'] > 1 ) {

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.