WP_Theme_JSON::get_element_class_name( string $element ): string
Returns a class name by an element name.
Parameters
-
$element
string Required -
The name of the element.
Return
string The name of the class.
Source
File: wp-includes/class-wp-theme-json.php
.
View all references
'color' => 'color',
'spacing' => 'spacing',
'typography' => 'typography',
);
/**
* Returns a class name by an element name.
*
* @since 6.1.0
*
* @param string $element The name of the element.
* @return string The name of the class.
*/
Changelog
Version | Description |
---|---|
6.1.0 | Introduced. |