wp_theme_get_element_class_name() – Given an element name, returns a class name.

You appear to be a bot. Output may be restricted

Description

Given an element name, returns a class name.

Alias of WP_Theme_JSON::get_element_class_name.

Usage

$string = wp_theme_get_element_class_name( $element );

Parameters

$element
( string ) required – The name of the element.

Returns

string The name of the class.

Source

File name: wordpress/wp-includes/theme.php


Lines:

1 to 4 of 4
function wp_theme_get_element_class_name( $element ) {
  return WP_Theme_JSON::get_element_class_name( $element );
}
 

 View on GitHub View on Trac