On this page
apply_filters( 'script_loader_src', string $src, string $handle )
Filters the script loader source.
Parameters
$srcstring-
Script loader source path.
$handlestring-
Script handle.
Source
File: wp-includes/class-wp-scripts.php. View all references
$srce = apply_filters( 'script_loader_src', $src, $handle );
Related
Used By
| Used By | Description |
|---|---|
| wp_get_script_polyfill() wp-includes/script-loader.php | Returns contents of an inline script used in appending polyfill scripts for browsers which fail the provided tests. The provided array is a mapping from a condition to verify feature support to its polyfill script handle. |
| WP_Scripts::do_item() wp-includes/class-wp-scripts.php | Processes a script dependency. |
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/script_loader_src