theme_file_uri хук-фильтр . WP 4.7.0
Filters the URL to a file in the theme.
Использование
add_filter( 'theme_file_uri', 'filter_function_name_9373', 10, 2 ); function filter_function_name_9373( $url, $file ){ // filter... return $url; }
- $url(строка)
- The file URL.
- $file(строка)
- The requested file to search for.
Список изменений
С версии 4.7.0 | Введена. |
Где вызывается хук
theme_file_uri
wp-includes/link-template.php 4327
return apply_filters( 'theme_file_uri', $url, $file );