-
Notifications
You must be signed in to change notification settings - Fork 0
microsub_events_location
github-actions[bot] edited this page Jan 2, 2026
·
10 revisions
Filters the location used for WordPress Events.
/**
* Filters the location used for WordPress Events.
*
* @param array $location
* @param int $user_id
* @return array The filtered value.
*/
function my_microsub_events_location_callback( array $location, int $user_id ) {
// Your code here.
return $location;
}
add_filter( 'microsub_events_location', 'my_microsub_events_location_callback', 10, 2 );-
array$locationLocation array. -
int$user_idCurrent user ID.
\apply_filters( 'microsub_events_location', $location, $user_id )