WP_Theme_JSON::convert_custom_properties( string $value ): string

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

This is used to convert the internal representation of variables to the CSS representation.

Description

For example, var:preset|color|vivid-green-cyan becomes var(--wp--preset--color--vivid-green-cyan).

Parameters

$valuestringrequired
The variable such as var:preset|color|vivid-green-cyan to convert.

Return

string The converted variable.

Source


	$slug += 10;
}

$spacing_sizes = $below_sizes;
foreach ( $above_sizes as $above_sizes_item ) {
	$spacing_sizes[] = $above_sizes_item;
}

// If there are 7 or fewer steps in the scale revert to numbers for labels instead of t-shirt sizes.
if ( $spacing_scale['steps'] <= 7 ) {
	for ( $spacing_sizes_count = 0; $spacing_sizes_count < count( $spacing_sizes ); $spacing_sizes_count++ ) {
		$spacing_sizes[ $spacing_sizes_count ]['name'] = (string) ( $spacing_sizes_count + 1 );
	}
}

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

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