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