gpb_event_settings_fields
Description
Filters the list of optional event settings fields shown in the Google Calendar connection UI. Return an array of field keys to enable. Currently supported:
- ‘event_description’ – Show the Event Description textarea.
Usage
Applied globally
add_filter( 'gpb_event_settings_fields', 'my_custom_function' );Parameters
$fields
string[]
Array of enabled field keys. Default [ ‘event_description’ ].
Examples
Hide the Event Description field
add_filter( 'gpb_event_settings_fields', function( $fields ) {
return array_values( array_diff( $fields, [ 'event_description' ] ) );
} );Since
1.0-beta-2.2Hook added.