Filters the script loader source.
Parameters
$srcstring- Script loader source path.
$handlestring- Script handle.
Source
$filtered_src = apply_filters( 'script_loader_src', $src, $handle );
Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |
| CARVIEW |
Filters the script loader source.
$srcstring$handlestring$filtered_src = apply_filters( 'script_loader_src', $src, $handle );
| 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. |
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
User Contributed Notes