Title: mohsadmin's Replies | WordPress.org

---

# mohsadmin

  [  ](https://wordpress.org/support/users/mohsadmin/)

 *   [Profile](https://wordpress.org/support/users/mohsadmin/)
 *   [Topics Started](https://wordpress.org/support/users/mohsadmin/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mohsadmin/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mohsadmin/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mohsadmin/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mohsadmin/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mohsadmin/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Eventbrite Venue] Deprecated calls to Eventbrite api](https://wordpress.org/support/topic/deprecated-calls-to-eventbrite-api/)
 *  [mohsadmin](https://wordpress.org/support/users/mohsadmin/)
 * (@mohsadmin)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/deprecated-calls-to-eventbrite-api/#post-6374716)
 * Solved it!!! add (array) in line 88
 * foreach ((array) $tickets as $ticket )
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [EventBrite Theme.](https://wordpress.org/support/topic/eventbrite-theme-1/)
 *  Thread Starter [mohsadmin](https://wordpress.org/support/users/mohsadmin/)
 * (@mohsadmin)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/eventbrite-theme-1/#post-7047847)
 * Solved it!!! add (array) in line 88
 * foreach ((array) $tickets as $ticket )
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [EventBrite Theme.](https://wordpress.org/support/topic/eventbrite-theme-1/)
 *  Thread Starter [mohsadmin](https://wordpress.org/support/users/mohsadmin/)
 * (@mohsadmin)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/eventbrite-theme-1/#post-7047838)
 * Here is the code..
 *  * price followed by text noting higher priced tickets.
    */ function eventbrite_venue_get_event_ticket_price_string(
   $tickets ) {
 *  foreach ( $tickets as $ticket ) {
    if ( true == $ticket->free ) { $prices[0]
   = ‘Free’; } else { $prices[$ticket->cost->value] = $ticket->cost->display; }
 *  }
 *  // Events created with the API might have no price assigned
    if ( empty( $prices)){
   return _x( ‘Price unknown’, ‘ticket price’, ‘eventbrite-venue’ ); }
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Eventbrite Venue] Deprecated calls to Eventbrite api](https://wordpress.org/support/topic/deprecated-calls-to-eventbrite-api/)
 *  [mohsadmin](https://wordpress.org/support/users/mohsadmin/)
 * (@mohsadmin)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/deprecated-calls-to-eventbrite-api/#post-6374715)
 * I am having same issue. Any solutions? WARNING: INVALID ARGUMENT SUPPLIED FOR
   FOREACH() IN /HOMEPAGES/25/D433600875/HTDOCS/CLICKANDBUILDS/MOHSTRAININGLIST/
   WP-CONTENT/THEMES/EVENTBRITE-VENUE/INC/EVENTBRITE.PHP ON LINE 88

Viewing 4 replies - 1 through 4 (of 4 total)