W3cubDocs

/WordPress

do_action( 'wp_print_scripts' )

Fires before scripts in the $handles queue are printed.

More Information

Since WordPress 3.3, wp_print_scripts should not be used to enqueue styles or scripts.
See: https://make.wordpress.org/core/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/

Use wp_enqueue_scripts instead.

Source

File: wp-includes/functions.wp-scripts.php

View on Trac

Changelog

Version Description
2.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_print_scripts