wp_print_scripts
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
wp_print_scripts
wp-includes/functions.wp-scripts.php 95
do_action( 'wp_print_scripts' );
wp-includes/script-loader.php 2095
do_action( 'wp_print_scripts' );
wp-includes/script-loader.php 2215
do_action( 'wp_print_scripts' );
Where the hook is used in WordPress
wp-includes/default-filters.php 593
add_action( 'wp_print_scripts', 'wp_just_in_time_script_localization' );