WP_Scripts::init() – Method | Developer.WordPress.org
Initialize the class.
Source
public function init() {
/**
* Fires when the WP_Scripts instance is initialized.
*
* @since 2.6.0
*
* @param WP_Scripts $wp_scripts WP_Scripts instance (passed by reference).
*/
do_action_ref_array( 'wp_default_scripts', array( &$this ) );
}
Hooks
- do_action_ref_array( ‘wp_default_scripts’,
WP_Scripts $wp_scripts ) Fires when the WP_Scripts instance is initialized.
| Uses | Description |
|---|---|
do_action_ref_array()wp-includes/plugin.php | Calls the callback functions that have been added to an action hook, specifying arguments in an array. |
| Used by | Description |
|---|---|
WP_Scripts::__construct()wp-includes/class-wp-scripts.php | Constructor. |
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |