-
Notifications
You must be signed in to change notification settings - Fork 16
mc_post_add_category
github-actions[bot] edited this page Jun 10, 2026
·
5 revisions
Execute action after inserting a new category into the My Calendar database.
add_action(
'mc_post_add_category',
function(
array $add,
int $cat_id,
string $category
) {
// Your code here.
},
10,
3
);-
array$addCategory data array used for DB insert. -
int$cat_idID of new category. -
string$categoryOriginal array sent to function.
do_action( 'mc_post_add_category', $add, $cat_id, $category )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 )