Skip to content

Instantly share code, notes, and snippets.

@GeoffEW
Created May 22, 2017 18:50
Show Gist options
  • Save GeoffEW/8cac9a50a1b12b535912d938c6a5f5ab to your computer and use it in GitHub Desktop.
Save GeoffEW/8cac9a50a1b12b535912d938c6a5f5ab to your computer and use it in GitHub Desktop.
Removes the recurring events option from Community Events
<?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