content_url хук-фильтр . WP 2.8.0
Filters the URL to the content directory.
Использование
add_filter( 'content_url', 'filter_function_name_2449', 10, 2 ); function filter_function_name_2449( $url, $path ){ // filter... return $url; }
- $url(строка)
- The complete URL to the content directory including scheme and path.
- $path(строка)
- Path relative to the URL to the content directory. Blank string if no path is specified.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
content_url
wp-includes/link-template.php 3402
return apply_filters( 'content_url', $url, $path );