Disable RSVP option

Home Forums Ticket Products Event Tickets Plus Disable RSVP option

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1337255
    David
    Participant

    Hi!
    I would like to remove the RSVP option from backend when you create a ticket. And make Woocommerce checked by default.

    Any idea wich file i have to edit?
    i found this one “\event-tickets\src\admin-views\meta-box.php:” which have the code for the metaboxes. But i´m not sure how to insert in my theme to override it.

    thanks!

    #1338155
    Victor
    Member

    Hi David!

    Thanks for reaching out to us! Let me help you with that

    We don’t recommend you edit any of the plugin files to make changes, because those changes will be overwritten when you update the plugin.

    Try placing the following code snippet into your theme’s functions.php file. It will hide the RSVP option from the edit event admin view:

    /* Tribe, remove RSVP tickets option from event page in the admin */function tribe_remove_rsvp() {
    // check if it's a Tribe admin page
    $screen = get_current_screen();
    if( !isset($screen->id) || $screen->id != Tribe__Events__Main::POSTTYPE ) return;
    // switch default provider and hide RSVP ?>
    <script type="text/javascript">
    jQuery(document).ready(function($){
    if ( $('input.ticket_field[value="Tribe__Tickets_Plus__Commerce__WooCommerce__Main"]').length ) {
    $('input.ticket_field[value="Tribe__Tickets_Plus__Commerce__WooCommerce__Main"]').click(); $('input.ticket_field[value="Tribe__Tickets__RSVP"]').hide().next().hide(); }
    });
    </script>
    <?php }
    add_action('admin_head', 'tribe_remove_rsvp');

    Let me know if that works for you.

    Best,
    Victor

    #1348109
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Disable RSVP option’ is closed to new replies.