Title: API EventMenager
Last modified: September 7, 2018

---

# API EventMenager

 *  Resolved [lours1](https://wordpress.org/support/users/lours1/)
 * (@lours1)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/api-eventmenager/)
 * Hello
    I’m currently develop a new place holder to show the list of person who
   have booked a ticket. My only problem is to find which method to use. Can you
   tell me if there is a document with all methode available?
 * thank you

Viewing 1 replies (of 1 total)

 *  [winstart](https://wordpress.org/support/users/winstart/)
 * (@winstart)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/api-eventmenager/#post-10666379)
 * have the solution made for a customer
    have a look
 * 1. /wp-content/plugins/events-manager/classes/em-person.php:
 * function get_name(){
    //Start- Added by WINSTART /*$full_name = $this->first_name.””.
   $this->last_name ; $full_name = wp_kses_data(trim($full_name)); $name = !empty(
   $full_name) ? $full_name : $this->display_name; return apply_filters(’em_person_get_name’,
   $name, $this);*/ $name = $this->display_name; return apply_filters(’em_person_get_name’,
   $name, $this); //End- Added by WINSTART } 2. /wp-content/plugins/events-manager/
   templates/placeholders/attendees.php (tussen de <?php en <?php):
 * //Start- Added by WINSTART
    foreach( $EM_Bookings as $EM_Booking){ /* [@var](https://wordpress.org/support/users/var/)
   $EM_Booking EM_Booking */ if($EM_Booking->booking_status == 1 && !in_array($EM_Booking-
   >get_person()->ID, $people) ){ $people[] = $EM_Booking->get_person()->ID; echo‘
    - ‘. get_avatar($EM_Booking->get_person()->ID, 50) .’ <span>’.$EM_Booking->get_person()-
      >get_name().'</span>
    - ‘;
       }elseif($EM_Booking->booking_status == 1 && $EM_Booking->is_no_user() ){
      echo ‘
    - ‘. get_avatar($EM_Booking->get_person()->ID, 50) .’ <span>’.$EM_Booking->get_person()-
      >get_name().'</span>
    - ‘;
       } } //End- Added by WINSTART ?>
    -  <!– Start- Added by WINSTART –>
       <style> .event-attendees li{ list-style:
      none; margin-bottom: 10px; } .event-attendees li img{ vertical-align: middle;
      margin-right: 10px; } </style> <!– End- Added by WINSTART –>
    - 3. /wp-content/plugins/events-manager/templates/placeholders/attendeeslist.
      php
       (tussen de <?php en <?php): //Start- Added by WINSTART /*foreach( $EM_Bookings
      as $EM_Booking){ if($EM_Booking->booking_status == 1 && !in_array($EM_Booking-
      >get_person()->ID, $people) ){ $people[] = $EM_Booking->get_person()->ID; 
      echo ‘
    - ‘. $EM_Booking->get_person()->get_name() .’
    - ‘;
       }elseif($EM_Booking->booking_status == 1 && $EM_Booking->is_no_user() ){
      echo ‘
    - ‘. $EM_Booking->get_person()->get_name() .’
    - ‘;
       } }*/ //End- Added by WINSTART

Viewing 1 replies (of 1 total)

The topic ‘API EventMenager’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 1 reply
 * 2 participants
 * Last reply from: [winstart](https://wordpress.org/support/users/winstart/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/api-eventmenager/#post-10666379)
 * Status: resolved