Counting user bookings

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 8 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22874

    Hi, i’m trying to display charts about user bookings vs total events. How I can get the number_format to show the number of events where the user has subscribed?

    For now I can show the total number of events
    $ Count_total_events = wp_count_posts (‘event’);

    Pep Boix
    #22877

    This function will count the number of events for which the user has at least one confirmed booking.:

    $number = eo_number_events_user_is_attending( $user_id );
    
    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 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.