gpb_ics_calendar_props
Description
Filter the ICS calendar properties for a feed.
The filter tag includes the feed type as a modifier, so you can hook into
all feeds via gpb_ics_calendar_props or a specific feed type via
gpb_ics_calendar_props_service, gpb_ics_calendar_props_resource, etc.
Usage
Applied globally
add_filter( 'gpb_ics_calendar_props', 'my_custom_function' );Applied to specific form
add_filter( 'gpb_ics_calendar_props_FORMID', 'my_custom_function' );Parameters
$calendar_props
array
The VCalendar property array.
VERSION
string
PRODID
string
CALSCALE
string
NAME
string
DESCRIPTION
string
$object_id
int|null
The service or resource ID, or null for the ‘all’ feed.
Examples
Change the calendar display name for service feeds only.
add_filter( 'gpb_ics_calendar_props_service', function( $props, $object_id ) {
$props['DESCRIPTION'] = 'Custom description for service ' . $object_id;
$props['X-WR-CALDESC'] = 'Custom description for service ' . $object_id;
return $props;
}, 10, 2 );Since
1.0-beta-2.9Hook added.