Filter: mc_display_host

apply_filters( 'mc_display_host', $user_ID, $context ) → {int}

Filter the host parameter for a My Calendar view if set as 'current'. Default current user ID.

Parameters:
Name Type Description
$user_ID int

Logged-in user ID.

$context string

'main' to indicate the my_calendar shortcode is running.

Source:
Returns:

Valid author ID.

Type
int

apply_filters( 'mc_display_host', $user_ID, $context ) → {int}

Filter the host parameter for a My Calendar view if set as 'current'. Default current user ID.

Parameters:
Name Type Description
$user_ID int

Logged-in user ID.

$context string

'upcoming' to indicate the my_calendar_upcoming shortcode is running.

Source:
Returns:

Valid author ID.

Type
int

apply_filters( 'mc_display_host', $user_ID, $context ) → {int}

Filter the host parameter for a My Calendar view if set as 'current'. Default current user ID.

Parameters:
Name Type Description
$user_ID int

Logged-in user ID.

$context string

'today' to indicate the my_calendar_today shortcode is running.

Source:
Returns:

Valid author ID.

Type
int