Skip to content

Instantly share code, notes, and snippets.

@caseydriscoll
Created August 6, 2014 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caseydriscoll/7dcfe972e1b8870acef6 to your computer and use it in GitHub Desktop.
Save caseydriscoll/7dcfe972e1b8870acef6 to your computer and use it in GitHub Desktop.
Tribe: Change publish status of all submitted Community Events
//Add to functions.php of your active theme
add_filter( 'tribe_events_community_sanitize_submission', 'set_community_events_publication_status' );
function set_community_events_publication_status( $submission ) {
// Uncomment one of the lines below to change the default status
//$submission['post_status'] = 'publish';
//$submission['post_status'] = 'pending';
return $submission;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment