wp_theme_get_element_class_name

The timeline below displays how wordpress function wp_theme_get_element_class_name has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Given an element name, returns a class name.
 *
 * Alias of WP_Theme_JSON::get_element_class_name.
 *
 * @since 6.1.0
 *
 * @param string $element The name of the element.
 *
 * @return string The name of the class.
 */
function wp_theme_get_element_class_name($element)
{
    return WP_Theme_JSON::get_element_class_name($element);
}