Hide Pending Venues from Venue List

This topic contains 2 replies, has 2 voices, and was last updated by  Stephen Harris 7 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25693

    The list of venues in the front-end event submission form should not include pending venues.

    I’d like to be able to exclude pending venues from the list, but it doesn’t seem possible since
    EO_Event_Form_Element_Event_Venue::get_venues() doesn’t except any arguments.

    Any suggestions for how this could be done?

    tadpole
    #25694

    Hi Dana,

    I agree – but a special case needs to be handled when editing events from the front-end, when this is enabled.

    I’ll look into a fix for this.

    Stephen Harris
    #25986

    Hi Dana,

    I forgot to update you on this. After investigating this I realised that pending venues only appear in the admin or if the user has the manage_venues capability. For front-end users, without that capability, the venue should not appear.

    Regards,
    Stephen

    Stephen Harris
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.