Skip to content

microsub_events_location

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

Filters the location used for WordPress Events.

Auto-generated Example

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

Parameters

  • array $location Location array.
  • int $user_id Current user ID.

Files

\apply_filters( 'microsub_events_location', $location, $user_id )

← All Hooks

Clone this wiki locally