script_loader_src WordPress Filter Hook
The script_loader_src hook is a great way to modify the way your WordPress site loads scripts. This hook allows you to change the script src attribute, which can be used to load scripts from a different location or to load a different script altogether. This is a great way to improve the performance of your site or to change the way your site looks and functions.
apply_filters( 'script_loader_src', string $src , string $handle ) #
Filters the script loader source.
Parameters
- $src
(string)Script loader source path.
- $handle
(string)Script handle.
Source
Changelog
Version | Description |
---|---|
2.2.0 | Introduced. |