Allows plugins to queue scripts for the front end using wp_enqueue_script().Runs first in wp_head() where all is_home(), is_page(), etc. functions are available.
Hooks fired · 1
One hook fires while wp_enqueue_scripts() runs, in this order:
2334functionwp_enqueue_scripts(){2335/**2336 * Fires when scripts and styles are enqueued.2337 *2338 * @since 2.8.02339 */2340do_action('wp_enqueue_scripts');2341}
History
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/script-loader.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.