• Resolved Steven Jones

    (@stompweb)


    Hi,

    I’d like to be able to remove the Venue and Organizers from both the menu and the meta boxes too.

    So far I’ve tried

    function hide_event_organizer_meta(){
    	tribe_set_the_meta_visibility( 'tribe_event_organizer', false, 'meta_group' );
    }
    add_action('init', 'hide_event_organizer_meta', 50);

    I’m only expecting this code to remove the meta for the organizer but it’s not working.

    Is my code incorrect and is there an easier to basically just deactivate Venues and Organizers?

    Cheers,
    Steve

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Brook

    (@brook-tribe)

    Howdy Steve,

    There absolutely is an easier way. The code you are using looks to be for an older version, probably why its giving you trouble. Have you seen our themers guide? https://tri.be/support/documentation/events-calendar-themers-guide/ Pretty powerful stuff it walks you through. It sounds like you would want to pay special attention to the modules folder, where you will find meta.php and organizer info, everything you’re looking for. Following the guide you can modify that view and show/.hide anything you want about it.

    Cheers!

    – Brook

    Thread Starter Steven Jones

    (@stompweb)

    This isn’t for the theme – this in the in the admin.

    I want to get rid of organizers and venues in the wp-admin underneath Events and also the meta boxes when you’re adding an event.

    Brook

    (@brook-tribe)

    Now I understand. The most tenable solution is to use CSS and hide it. But, if you would prefer to completely remove it you would have to directly edit the plugin, and of course lose all your changes anytime you update said plugin. The file you’d need to edit would be /the-events-calendar/admin-views/events-meta-box.php.

    If you want me advice, go the CSS route. Cheers!

    – Brook

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Venue & Organizers’ is closed to new replies.