Skip to content

Instantly share code, notes, and snippets.

@nefeline
Last active January 17, 2019 20:53
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 nefeline/d31bb0053e6ca6507c216fa6d3abd782 to your computer and use it in GitHub Desktop.
Save nefeline/d31bb0053e6ca6507c216fa6d3abd782 to your computer and use it in GitHub Desktop.
Change the required fields in the Community Events submission form.
<?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