WP_Theme_JSON::get_element_class_name( string $element ): string

In this article

Returns a class name by an element name.

Parameters

$elementstringrequired
The name of the element.

Return

string The name of the class.

Source

public static function get_element_class_name( $element ) {
	$class_name = '';

	if ( isset( static::__EXPERIMENTAL_ELEMENT_CLASS_NAMES[ $element ] ) ) {
		$class_name = static::__EXPERIMENTAL_ELEMENT_CLASS_NAMES[ $element ];
	}

	return $class_name;
}

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

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