wp_default_scripts
Fires when the WP_Scripts instance is initialized.
Description
Parameters (1)
- 0. $array (array) =>
array(&$this)
- &
$this
WP_Scripts
instance, passed by reference.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'wp_default_scripts', $array );
- The following example is for adding a hook callback.
- // define the wp_default_scripts callback
- function action_wp_default_scripts( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'wp_default_scripts', 'action_wp_default_scripts', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'wp_default_scripts', 'action_wp_default_scripts', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /wp-includes/class.wp-scripts.php
- do_action_ref_array( 'wp_default_scripts', array(&$this) );
- /wp-includes/default-filters.php
- add_action( 'wp_default_scripts', 'wp_default_scripts' );