wp_default_scripts action-hookWP 2.6.0

Fires when the WP_Scripts instance is initialized.

Usage

add_action( 'wp_default_scripts', 'wp_kama_default_scripts_action' );

/**
 * Function for `wp_default_scripts` action-hook.
 * 
 * @param WP_Scripts $wp_scripts WP_Scripts instance (passed by reference).
 *
 * @return void
 */
function wp_kama_default_scripts_action( $wp_scripts ){

	// action...
}
$wp_scripts(WP_Scripts)
WP_Scripts instance (passed by reference).

Changelog

Since 2.6.0 Introduced.

Where the hook is called

WP_Scripts::init()
wp_default_scripts
wp-includes/class-wp-scripts.php 167
do_action_ref_array( 'wp_default_scripts', array( &$this ) );

Where the hook is used in WordPress

wp-includes/default-filters.php 555
add_action( 'wp_default_scripts', 'wp_default_scripts' );
wp-includes/default-filters.php 556
add_action( 'wp_default_scripts', 'wp_default_packages' );