W3cubDocs

/WordPress

WP_Theme_JSON::get_element_class_name( string $element ): string

Returns a class name by an element name.

Parameters

$elementstringrequired
The name of the element.

Return

string The name of the class.

Source

),
'dimensions' => array(
	'aspectRatio' => null,
	'minHeight'   => null,
),
'filter'     => array(
	'duotone' => null,
),
'outline'    => array(
	'color'  => null,
	'offset' => null,
	'style'  => null,
	'width'  => null,

Changelog

Version Description
6.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_json/get_element_class_name