Created
May 22, 2017 18:50
-
-
Save GeoffEW/8cac9a50a1b12b535912d938c6a5f5ab to your computer and use it in GitHub Desktop.
Removes the recurring events option from Community Events
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 | |
/* Apply the following snippet in the functions.php file of your theme (without the PHP tag at the top) */ | |
add_action( 'tribe_events_community_form', function() { | |
$event_form = Tribe__Events__Community__Main::instance()->form; | |
remove_action( 'tribe_events_date_display', array( $event_form, 'loadRecurrenceData' ) ); | |
}, 5 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment