-
Notifications
You must be signed in to change notification settings - Fork 16
_template_paths
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
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 )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )