WP_Font_Face::generate_style_element_attributes()
Gets the defined <style> element's attributes.
Метод класса: WP_Font_Face{}
Хуков нет.
Возвращает
Строку
. A string of attribute=value when defined, else, empty string.
Использование
// private - только в коде основоного (родительского) класса $result = $this->generate_style_element_attributes();
Список изменений
С версии 6.4.0 | Введена. |
Код WP_Font_Face::generate_style_element_attributes() WP Font Face::generate style element attributes WP 6.7.1
private function generate_style_element_attributes() { $attributes = ''; foreach ( $this->style_tag_attrs as $name => $value ) { $attributes .= " {$name}='{$value}'"; } return $attributes; }