WP_Font_Face::generate_style_element_attributes(): string

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

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

VersionDescription
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.