Forked from GeoffEW/unhook_recurring_events_community.php
Created
May 30, 2017 23:47
-
-
Save benklocek/83f763763f9385b5ea9838fcabff151f to your computer and use it in GitHub Desktop.
Removes the recurring events option from Community Events
This file contains hidden or 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