-
Notifications
You must be signed in to change notification settings - Fork 16
mc_custom_dirs
Joe Dolson edited this page May 15, 2026
·
4 revisions
Filter My Calendar's array of directories to check for custom files. Use to define where your custom templates and styles will be found.
add_filter(
'mc_custom_dirs',
function(
{array} $dirs,
{string} $type
) {
// Your code here.
return $dirs;
},
10,
2
);-
{array}$dirsArray of directory paths to check. -
{string}$typeChecking paths or URLs.
{array}
apply_filters( 'mc_custom_dirs', $dirs, $type )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 )