content_url filter-hook . WP 2.8.0
Filters the URL to the content directory.
Usage
add_filter( 'content_url', 'filter_function_name_4230', 10, 2 ); function filter_function_name_4230( $url, $path ){ // filter... return $url; }
- $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.
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
content_url
wp-includes/link-template.php 3402
return apply_filters( 'content_url', $url, $path );