• Resolved albanorybr

    (@albanorybr)


    Hello, I need organizers able to see in the event dashboard not only their events but all the events. How can I do this? Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rita Kikani

    (@kikanirita)

    Hi @albanorybr ,

    If you want to show all events to every organizers in event dashboard, then you need to customize WP post query which is used to retrieve events for event dashboard page.

    For this, we already given filter : apply_filters(‘event_manager_get_dashboard_events_args’, $args_array);

    you have to use this filter to remove “author”. you have to write below code in your theme functions.php file.

    For example :

    add_filter('event_manager_get_dashboard_events_args', 'event_dashboard_events_args');
    
    function event_dashboard_events_args($args){
    
        return array(
    
            'post_type'           => 'event_listing',
    
            'post_status'         => array('publish', 'expired', 'pending'),
    
            'ignore_sticky_posts' => 1,
    
            'posts_per_page'      => $args['posts_per_page'],
    
            'offset'              => (max(1, get_query_var('paged')) - 1) * $args['posts_per_page'],
    
            'orderby'             => $args['orderby'],
    
            'order'               => $args['order'],
    
        );
    
    }

    I hope that this code will help to resolve your query.

    Thank you.

    Thread Starter albanorybr

    (@albanorybr)

    @kikanirita Thank you, all organizers can view all events now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Organizers only see their events’ is closed to new replies.