venue pending

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #33829

    I added create venue in user form, but venue have status pending.
    1 How to auto approve added venue?
    also i no see manual option in admin.
    2 If user submited venue showing to every user or only to author?
    in submit event form.

    Dmitri Nepo
    #33880

    The venue should be automatically approved when the corresponding event is approved (published).

    Stephen Harris
    #33881

    good and if possible approv venues from private events?
    if i need change every thing in code, please help me with this.
    * i use code, publishing event convert to private automatic.

    Dmitri Nepo
    #33888

    Venues for events should be approved when the event is irrespective of its visibility (public/private). The venue, however, won’t be private as they do not have visibility.

    Stephen Harris
    #33895

    but i going to venue press Update Venue and no result, the venue have status Pending
    Venue Name (pending)
    Edit | Delete | View

    Maybe can use and modifed this code for venue?
    this code convert publish event to private,
    but venue this no post type.

    function wp_118970_force_type_private($post) {
    if ($post[‘post_status’] != ‘trash’ && $post[‘post_status’] != “draft” && $post[‘post_status’] != “auto-draft” && $post[‘post_type’] == ‘event’) {
    $post[‘post_status’] = ‘private’;
    }
    return $post;
    }
    add_filter(‘wp_insert_post_data’, ‘wp_118970_force_type_private’);

    Dmitri Nepo
    #33922

    The venue is approved when the event is published, not when the venue is updated.

    Venues are a custom taxonomy, not post types.

    Stephen Harris
Viewing 6 posts - 1 through 6 (of 6 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.