WP_Font_Face::__construct()

In this article

Creates and initializes an instance of WP_Font_Face.

Source

public function __construct() {
	if (
		function_exists( 'is_admin' ) && ! is_admin()
		&&
		function_exists( 'current_theme_supports' ) && ! current_theme_supports( 'html5', 'style' )
	) {
		$this->style_tag_attrs = array( 'type' => 'text/css' );
	}
}

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

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