wp_print_scripts ( $handles = false )
- (string|bool|array) handles Optional. Scripts to be printed. Default 'false'.
- (string) On success, an array of handles of processed WP_Dependencies items; otherwise, an empty array.
- Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Prints scripts in document head that are in the $handles queue.Called by admin-header.php and Array hook. Since it is called by wp_head on every page load,
the function does not instantiate the WP_Scripts object unless script names are explicitly passed.
Makes use of already-instantiated $wp_scripts global if present. Use provided Array
hook to register/enqueue new scripts.