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).


Top ↑

Source

File: wp-includes/class.wp-scripts.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.