wp_print_scripts action-hookWP 2.1.0

Fires before scripts in the $handles queue are printed.

Usage

add_action( 'wp_print_scripts', 'wp_kama_print_scripts_action' );

/**
 * Function for `wp_print_scripts` action-hook.
 * 
 * @return void
 */
function wp_kama_print_scripts_action(){

	// action...
}

Changelog

Since 2.1.0 Introduced.

Where the hook is called

wp_print_scripts()
wp_print_scripts
print_head_scripts()
wp_print_scripts
wp_print_head_scripts()
wp_print_scripts
wp-includes/functions.wp-scripts.php 95
do_action( 'wp_print_scripts' );
wp-includes/script-loader.php 1988
do_action( 'wp_print_scripts' );
wp-includes/script-loader.php 2108
do_action( 'wp_print_scripts' );

Where the hook is used in WordPress

wp-includes/default-filters.php 568
add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' );