Forked from rafaehlers/gv_calendar_remove_time_display.php
Last active
May 24, 2020 20:35
-
-
Save zackkatz/22a50b7c2001b18fa98c7ba71eab2a28 to your computer and use it in GitHub Desktop.
Gravity Forms Calendar - Prevent time from being displayed in the calendar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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