wp_theme_get_element_class_name( string $element ): string

In this article

Given an element name, returns a class name.

Description

Alias of WP_Theme_JSON::get_element_class_name.

Parameters

$elementstringrequired
The name of the element.

Return

string The name of the class.

Source

function wp_theme_get_element_class_name( $element ) {
	return WP_Theme_JSON::get_element_class_name( $element );
}

Changelog

VersionDescription
6.1.0Introduced.

User Contributed Notes

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