-
Notifications
You must be signed in to change notification settings - Fork 16
mc_category_fields
github-actions[bot] edited this page May 15, 2026
·
5 revisions
Insert custom fields for categories.
add_filter(
'mc_category_fields',
function(
{string} $output,
{object} $cur_cat
) {
// Your code here.
return $output;
},
10,
2
);-
{string}$outputField HTML output. -
{object}$cur_catCurrent category object.
{string}
apply_filters( 'mc_category_fields', '', $cur_cat )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 )