Skip to content

microsub_events_locations

github-actions[bot] edited this page Jan 1, 2026 · 2 revisions

Filter the list of locations to try for events.

Auto-generated Example

/**
 * 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 );

Parameters

  • Microsub\array[] $locations Location arrays.
  • int $user_id Current user ID.

Files

\apply_filters( 'microsub_events_locations', $locations, $user_id )

← All Hooks

Clone this wiki locally