content_url WordPress Filter Hook
The content_url hook is used to modify the content URL for a Wordpress site. This can be useful if you need to change the content URL for a specific reason, or if you want to change the content URL for all sites on a network.
apply_filters( 'content_url', string $url , string $path ) #
Filters the URL to the content directory.
Parameters
- $url
(string)The complete URL to the content directory including scheme and path.
- $path
(string)Path relative to the URL to the content directory. Blank string if no path is specified.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |