Meta-Infos and Additional Fields

Home Forums Calendar Products Events Calendar PRO Meta-Infos and Additional Fields

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #947958
    Elisabeth
    Participant

    Hallo,

    I hope is not unpolite to come directly to my question.

    I am using PRO and would like to separate the usual meta information from
    these additional meta fields. I figuered out how to call the additional fields separtatly,
    but I have no idea where to kill the additonal fields in the default view.

    We are talking about single-event.php with
    echo tribe_events_single_event_meta();

    Can you give me any advice?

    Thank you,
    Elisa

    #948010
    Barry
    Member

    Hi Elisa,

    Thanks for posting 🙂

    This short snippet – which you might add to your theme’s functions.php file – should remove the additional fields section from your single event’s meta area:

    add_action( 'init', 'remove_additional_fields_from_single_meta', 100 );
    
    function remove_additional_fields_from_single_meta() {
    	if ( ! class_exists( 'TribeEventsPro' ) ) return;
    	$callback = array(TribeEventsPro::instance()->single_event_meta, 'additional_fields');
    	remove_filter( 'tribe_events_single_event_meta_primary_section_end', $callback );
    }

    Does that help?

    #948110
    Elisabeth
    Participant

    Great, this works.

    Thank you,
    Elisa

    #948183
    Barry
    Member

    Happy to help!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Meta-Infos and Additional Fields’ is closed to new replies.