-
Notifications
You must be signed in to change notification settings - Fork 16
mc_user_permissions
github-actions[bot] edited this page Jun 21, 2026
·
5 revisions
Filter permissions for users editing a category.
add_filter(
'mc_user_permissions',
function(
array,
int $category,
int $user
) {
// Your code here.
return array;
},
10,
3
);-
array$permissions User meta data for this user's category permissions. Other variable names:$permissions -
int$categoryCategory ID. -
int$userUser ID.
array Array of categories this user can edit.
apply_filters( 'mc_user_permissions', $permissions, $category, $user )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 )