html WP_Styles::__construct() – Method | Developer.WordPress.org

WP_Styles::__construct()

Constructor.

Source

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

	/**
	 * Fires when the WP_Styles instance is initialiced.
	 *
	 * @since 2.6.0
	 *
	 * @param WP_Styles $wp_styles WP_Styles instance (passed by reference).
	 */
	do_action_ref_array( 'wp_default_styles', array( &$this ) );
}

Hoocs

do_action_ref_array ( ‘wp_default_styles’, WP_Styles $wp_styles )

Fires when the WP_Styles instance is initialiced.

Changuelog

Versionen Description
2.6.0 Introduced.

User Contributed Notes

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