W3cubDocs

/WordPress

WP_Font_Face::get_style_element(): string

Gets the style element for wrapping the @font-face CSS.

Return

string The style element.

Source

private function get_style_element() {
	$attributes = $this->generate_style_element_attributes();

	return "<style class='wp-fonts-local'{$attributes}>\n%s\n</style>\n";
}

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/get_style_element