Last active
January 17, 2019 20:53
-
-
Save nefeline/d31bb0053e6ca6507c216fa6d3abd782 to your computer and use it in GitHub Desktop.
Change the required fields in the Community Events submission form.
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 | |
// Change the required fields in the Community Events form. This code is setting only the Event Title | |
// as a required field in the submission form. You can customize it the way you want. | |
// You will find the default event fields in the following link: | |
// https://theeventscalendar.com/knowledgebase/required-fields-for-events-submission-form/#default-fields | |
add_action( 'tribe_events_community_required_fields', 'my_community_required_fields' ); | |
function my_community_required_fields( $required_fields ) { | |
$required_fields = array( | |
'post_title', | |
); | |
return $required_fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment