On this page
wp_enqueue_scripts()
Wrapper for do_action( ‘wp_enqueue_scripts’ ).
Description
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.
Source
File: wp-includes/script-loader.php. View all references
function wp_enqueue_scripts() {
/**
* Fires when scripts and styles are enqueued.
*
* @since 2.8.0
*/
do_action( 'wp_enqueue_scripts' );
}
Hooks
- do_action( 'wp_enqueue_scripts' )
-
Fires when scripts and styles are enqueued.
Related
Uses
| Uses | Description |
|---|---|
| do_action() wp-includes/plugin.php | Calls the callback functions that have been added to an action hook. |
Used By
| Used By | Description |
|---|---|
| WP_Customize_Manager::wp_die() wp-includes/class-wp-customize-manager.php | Custom wp_die wrapper. Returns either the standard message for UI or the Ajax message. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_enqueue_scripts