parent_theme_file_path хук-фильтрWP 4.7.0

Filters the path to a file in the parent theme.

Использование

add_filter( 'parent_theme_file_path', 'wp_kama_parent_theme_file_path_filter', 10, 2 );

/**
 * Function for `parent_theme_file_path` filter-hook.
 * 
 * @param string $path The file path.
 * @param string $file The requested file to search for.
 *
 * @return string
 */
function wp_kama_parent_theme_file_path_filter( $path, $file ){

	// filter...
	return $path;
}
$path(строка)
The file path.
$file(строка)
The requested file to search for.

Список изменений

С версии 4.7.0 Введена.

Где вызывается хук

get_parent_theme_file_path()
parent_theme_file_path
wp-includes/link-template.php 4679
return apply_filters( 'parent_theme_file_path', $path, $file );

Где используется хук в WordPress

Использование не найдено.