Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackkatz/22a50b7c2001b18fa98c7ba71eab2a28 to your computer and use it in GitHub Desktop.
Save zackkatz/22a50b7c2001b18fa98c7ba71eab2a28 to your computer and use it in GitHub Desktop.
Gravity Forms Calendar - Prevent time from being displayed in the calendar
<?php // DO NOT COPY THIS LINE
/**
* Remove the time from being displayed on a GravityView calendar
*
* @see https://docs.gravityview.co/category/647-calendar
*
* @param array $calendar_options Array of FullCalendar options
*
* @return mixed
*/
function gv_calendar_remove_time_display( $calendar_options ) {
$calendar_options['displayEventTime'] = false; // Disable displaying of time
return $calendar_options;
}
add_filter('gravityview/calendar/options', 'gv_calendar_remove_time_display', 10, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment