Created
August 6, 2014 21:06
-
-
Save caseydriscoll/7dcfe972e1b8870acef6 to your computer and use it in GitHub Desktop.
Tribe: Change publish status of all submitted 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
//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