wp_default_scripts WordPress Action Hook
This hook allows you to modify the default scripts that are loaded by WordPress. This can be useful if you want to remove or replace a script with a custom version.
do_action_ref_array( 'wp_default_scripts', WP_Scripts $wp_scripts ) #
Fires when the WP_Scripts instance is initialized.
Parameters
- $wp_scripts
(WP_Scripts)WP_Scripts instance (passed by reference).
Source
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |