Hi. I am wanting to require Title, Description, Venue, Organizer and Event Start Date. I followed the directions to edit the functions.php file. I added the code below:
add_filter( 'tribe_events_community_required_fields', 'my_community_required_fields', 10, 1 );
function my_community_required_fields( $fields ) {
$fields = array(
'post_title',
'post_content',
'EventStartDate',
'venue',
'organizer',
);
return $fields;
}
I am not able to get the code to work but I am using a child-theme so I’m wondering if that’s the issue? I would prefer to add this to the child-theme functions file so it won’t get over-written on theme upgrade.
I am doing something wrong?
Thanks!