W3cubDocs

/WordPress

WP_Font_Face::generate_style_element_attributes(): string

Gets the defined element’s attributes.

Return

string A string of attribute=value when defined, else, empty string.

Source

private function generate_style_element_attributes() {
	$attributes = '';
	foreach ( $this->style_tag_attrs as $name => $value ) {
		$attributes .= " {$name}='{$value}'";
	}
	return $attributes;
}

Changelog

Version Description
6.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_font_face/generate_style_element_attributes