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.

Top ↑

Return

string The name of the class.


Top ↑

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.
 */

Top ↑

Changelog

Changelog
Version Description
6.1.0 Introduced.

Top ↑

User Contributed Notes

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