How to hide Enable Global Stock and Hide Attendees List On Event Page

Home Forums Calendar Products Community Events How to hide Enable Global Stock and Hide Attendees List On Event Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1099250
    Cesar
    Participant

    Hi guys,

    Since I updated from 4.0.7 to 4.1 I’m seeing:
    – Enable Global Stock
    – Hide Attendees List On Event Page

    on the tickets scection. Do you know how can I hide them?
    Error here

    This did not work for me:
    How to deactivate the “Who’s attending” feature?

    Thank you TEC.

    #1099398
    Brook
    Participant

    Howdy Again!

    I can definitely walk you through this.

    Remember last time I had you create a theme override for tickets.php ? You will need to modify that. Find this line:

    $global_stock = new Tribe__Tickets__Global_Stock( $event->ID );

    and change it to:

    $global_stock = false;

    To hide the attendees list you will want to attach a function to this filter ‘tribe_tickets_plus_hide_attendees_list’ and return false if the person is an admin.

    Did that help get you where you need to be?

    Cheers!

    • Brook
    #1105488
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to hide Enable Global Stock and Hide Attendees List On Event Page’ is closed to new replies.