Disable Places View

Home Forums Calendar Products Events Calendar PRO Disable Places View

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1167828
    silktech
    Participant

    Can i disable views for places (even if i use pro)?

    #1168174
    Nico
    Member

    Hi there @silktech,

    Thanks for getting in touch with us!

    Can i disable views for places (even if i use pro)?

    Yes, just paste the snippet below in your theme’s (or child theme’s) functions.php file and it will disable the venue links (although the venue page will still be available via direct URL):


    /* Tribe, disable Venue link added by Events Calendar PRO */
    remove_action( 'tribe_events_single_meta_before', array( 'Tribe__Events__Pro__Single_Event_Meta', 'filter_fields' ) );

    Please let me know if this works for you,
    Have a great weekend,
    Nico

    #1168230
    silktech
    Participant

    no
    but this did the whole job

    remove_action( 'tribe_events_single_meta_before', array( 'Tribe__Events__Pro__Single_Event_Meta', 'link_venue' ) );
    
    function remove_publicvenue($args) {
    	$args['public']=false;
    	return $args;
    }
    add_action('tribe_events_register_venue_type_args', 'remove_publicvenue');
    
    #1168667
    Nico
    Member

    Hey @silktech, nice touch modifying the post type args! Thank for sharing the code to your solution 🙂

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Hope you have a great week,
    Cheers,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Disable Places View’ is closed to new replies.