-
Notifications
You must be signed in to change notification settings - Fork 0
microsub_events_locations
github-actions[bot] edited this page Jan 1, 2026
·
2 revisions
Filter the list of locations to try for events.
/**
* Filter the list of locations to try for events.
*
* @param Microsub\array[] $locations
* @param int $user_id
* @return Microsub\array[] The filtered value.
*/
function my_microsub_events_locations_callback( Microsub\array[] $locations, int $user_id ) {
// Your code here.
return $locations;
}
add_filter( 'microsub_events_locations', 'my_microsub_events_locations_callback', 10, 2 );-
Microsub\array[]$locationsLocation arrays. -
int$user_idCurrent user ID.
\apply_filters( 'microsub_events_locations', $locations, $user_id )