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:
2323functionwp_enqueue_scripts(){2324/**2325 * Fires when scripts and styles are enqueued.2326 *2327 * @since 2.8.02328 */2329do_action('wp_enqueue_scripts');2330}
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.0.4 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.