WP_Theme_JSON::get_block_element_selectors( string $root_selector ): array

In this article

Generates all the element selectors for a block.

Parameters

$root_selectorstringrequired
The block’s root CSS selector.

Return

array The block’s element selectors.

Source


	$below_sizes[] = array(
		/* translators: %s: Digit to indicate multiple of sizing, eg. 2X-Small. */
		'name' => $below_midpoint_count === $steps_mid_point - 1 ? __( 'Small' ) : sprintf( __( '%sX-Small' ), (string) $x_small_count ),
		'slug' => (string) $slug,
		'size' => round( $current_step, 2 ) . $unit,
	);

	if ( $below_midpoint_count === $steps_mid_point - 2 ) {
		$x_small_count = 2;
	}

	if ( $below_midpoint_count < $steps_mid_point - 2 ) {
		++$x_small_count;
	}

	$slug -= 10;
}

$below_sizes = array_reverse( $below_sizes );

$below_sizes[] = array(

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

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