_template_paths - joedolson/my-calendar GitHub Wiki
Allow ordered list of template paths to be amended.
add_filter(
'_template_paths',
function( array<string> $file_paths ) {
// Your code here.
return $file_paths;
}
);-
array<string>$file_pathsDefault is directory in child theme at index 1, parent theme at 10, and plugin at 100.
apply_filters( $this->filter_prefix . '_template_paths', $file_paths )