WP_Font_Face::__constructpublicWP 6.4.0

Creates and initializes an instance of WP_Font_Face.

Method of the class: WP_Font_Face{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WP_Font_Face = new WP_Font_Face();
$WP_Font_Face->__construct();

Changelog

Since 6.4.0 Introduced.

WP_Font_Face::__construct() code WP 6.8.1

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' );
	}
}