WP_Font_Face::get_style_elementprivateWP 6.4.0

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

Method of the class: WP_Font_Face{}

No Hooks.

Returns

String. The style element.

Usage

// private - for code of main (parent) class only
$result = $this->get_style_element();

Changelog

Since 6.4.0 Introduced.

WP_Font_Face::get_style_element() code WP 6.8.1

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

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