wp_default_scripts action-hook . WP 2.6.0
Fires when the WP_Scripts instance is initialized.
Usage
add_action( 'wp_default_scripts', 'action_function_name_3748' ); function action_function_name_3748( $this ){ // action... }
- $this(WP_Scripts)
- WP_Scripts instance (passed by reference).
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
wp_default_scripts
wp-includes/class.wp-scripts.php 167
do_action_ref_array( 'wp_default_scripts', array( &$this ) );
Where in WP core the hook is used WordPress
wp-includes/default-filters.php 513
add_action( 'wp_default_scripts', 'wp_default_scripts' );
wp-includes/default-filters.php 514
add_action( 'wp_default_scripts', 'wp_default_packages' );