WP_Font_Face::__construct
Creates and initializes an instance of WP_Font_Face.
Метод класса: WP_Font_Face{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Font_Face = new WP_Font_Face(); $WP_Font_Face->__construct();
Список изменений
| С версии 6.4.0 | Введена. |
Код WP_Font_Face::__construct() WP Font Face:: construct WP 6.9
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' );
}
}