How can I remove the required function for event details?

Home Forums Calendar Products Events Calendar PRO How can I remove the required function for event details?

  • This topic has 4 replies, 2 voices, and was last updated 6 years, 9 months ago by Bernhardsgrütter Anton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1310117

    We integrated THE EVENTS CALENDAR on the site http://www.toessthaler.ch/veranstaltungen/

    Add event url:
    http://toessthaler.ch/veranstaltungen/veranstaltungeintragen/add

    QUESTION:
    Is there a possibility to remove the required function for the input field EVENT DETAILS? (the input field after title, pls see printscreen)

    We have a lot of events without details – only with a title.

    Thanks!

    #1312726
    Barry
    Member

    Definitely, though it would take a small customization to do this.

    function ce_remove_description_requirement( $required_fields ) {
    	if ( ! is_array( $required_fields ) ) {
    		return $required_fields;
    	}
    
    	$index = array_search( 'post_content', $required_fields );
    
    	if ( false !== $index ) {
    		unset( $required_fields[ $index ] );
    	}
    
    	return $required_fields;
    }
    
    add_filter( 'tribe_events_community_required_fields', 'ce_remove_description_requirement' );

    If you add the above either to a custom plugin or to your theme’s functions.php file, it should get you on track here.

    Let me know if that helps 🙂

    #1316690

    Hi Barry, it works! Thank you!

    #1317032
    Barry
    Member

    Fantastic 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How can I remove the required function for event details?’ is closed to new replies.