• Resolved albanorybr

    (@albanorybr)


    Hello, does any one knows how to configure wp event manager, so that all organizers can export the registrations in the front end? . I already have the export extension, but only the organizer that make the event can see the event and export, I need all organizers can do that.

    I already try in wp content > plugins > wp_event_manager_export in here there are two php files export-functions.php and export.php. In this second one I find lines taking about authors, but I don know how to modify them. Here they are>

    Line 285 : ??$auther_id?=?isset($_POST[‘download_events_custom’])?$_POST[‘download_events_custom’]:$_POST[‘event_xml_custome’];?

    In the above code how can I adn auther id and other specific users?

    Line: 455:

     if(!is_admin() && (isset( $export_file_type ) && isset($data_type) && !empty($data_type) && !empty($export_file_type))){

                if($is_post_id == false){

                    $row[] = ‘_post_id’;

                    $custom_fields[] = ‘_post_id’; 

    In the above code istead of if_admin, can I write if_organizers ?

    Thank you,

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

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

    (@kikanirita)

    Hi @albanorybr ,

    Currently we do not have any filter to change this wp query, but we will add filter for this in our next release of export.

    To resolve this query, you can update code in export addon, file name “wp-event-manager-export-functions.php” in get_event_posts(), add below line before the get_posts() statement.

    $args = apply_filters(‘wpem_export_event_listing_args’, $args, $post_type);

       

    And then please use this filter to change query args same as your previous thread : https://www.ads-software.com/support/topic/organizers-only-see-their-events/

    In your filter function, you can edit or delete post_auther (below code may you can delete in your function)

    $args[‘author__in’] = array($auther_id);

    I hope that your issue will be fixed using this code.

    Thank you.

    • This reply was modified 1 year, 4 months ago by Rita Kikani.
Viewing 1 replies (of 1 total)
  • The topic ‘Export events for all organizers’ is closed to new replies.