On this page
WP_Scripts::__construct()
Constructor.
Source
File: wp-includes/class-wp-scripts.php. View all references
public function __construct() {
$this->init();
add_action( 'init', array( $this, 'init' ), 0 );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Scripts::init() wp-includes/class-wp-scripts.php | Initialize the class. |
| add_action() wp-includes/plugin.php | Adds a callback function to an action hook. |
Used By
| Used By | Description |
|---|---|
| wp_scripts() wp-includes/functions.wp-scripts.php | Initialize $wp_scripts if it has not been set. |
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_scripts/__construct