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 2094
do_action( 'wp_print_scripts' );
wp-includes/script-loader.php 2214
do_action( 'wp_print_scripts' );

Where the hook is used in WordPress

wp-includes/blocks/file.php 87
add_action( 'wp_print_scripts', 'block_core_file_ensure_interactivity_dependency' );
wp-includes/blocks/image.php 353
add_action( 'wp_print_scripts', 'block_core_image_ensure_interactivity_dependency' );
wp-includes/blocks/navigation.php 849
add_action( 'wp_print_scripts', 'block_core_navigation_ensure_interactivity_dependency' );
wp-includes/blocks/query.php 122
add_action( 'wp_print_scripts', 'block_core_query_ensure_interactivity_dependency' );
wp-includes/blocks/search.php 226
add_action( 'wp_print_scripts', 'block_core_search_ensure_interactivity_dependency' );
wp-includes/default-filters.php 592
add_action( 'wp_print_scripts', 'wp_just_in_time_script_localization' );