wp_theme_get_element_class_name

函数


wp_theme_get_element_class_name ( $element )
参数
  • (string)
    $element
    The name of the element.
    Required:
返回值
  • (string) The name of the class.
定义位置
  • wp-includes/theme.php
    , line 4231
引入
6.1.0
弃用

Given an element name, returns a class name.

Alias of WP_Theme_JSON::get_element_class_name.

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