parent_theme_file_uri filter-hookWP 4.7.0

Filters the URL to a file in the parent theme.

Usage

add_filter( 'parent_theme_file_uri', 'wp_kama_parent_theme_file_uri_filter', 10, 2 );

/**
 * Function for `parent_theme_file_uri` filter-hook.
 * 
 * @param string $url  The file URL.
 * @param string $file The requested file to search for.
 *
 * @return string
 */
function wp_kama_parent_theme_file_uri_filter( $url, $file ){

	// filter...
	return $url;
}
$url(string)
The file URL.
$file(string)
The requested file to search for.

Changelog

Since 4.7.0 Introduced.

Where the hook is called

get_parent_theme_file_uri()
parent_theme_file_uri
wp-includes/link-template.php 4615
return apply_filters( 'parent_theme_file_uri', $url, $file );

Where the hook is used in WordPress

Usage not found.