W3cubDocs

/WordPress

WP_Scripts::__construct()

Constructor.

Source

File: wp-includes/class.wp-scripts.php

public function __construct() {
		$this->init();
		add_action( 'init', array( $this, 'init' ), 0 );
	}

Changelog

Version Description
2.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_scripts/__construct