Is there a hook for when someone is checked in?

Home Forums Welcome! Pre-Sales Questions Is there a hook for when someone is checked in?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #987605
    John Wooton
    Guest

    I’m working with a client on a custom implementation of this plugin with other services and I’m wondering if it’s at all possible to have a hook for when the attendee is checked into an event. I looked through the documentation, but I’m not able to see an actual hook for this. Does one exist or is this something you might consider adding to a future release?

    #987822
    Brian
    Member

    Hi,

    Thanks for the interest in our plugins. I can answer your question.

    When the checking process occurs in WooCommerce Tickets this function runs and it has an action in it you could hook to:

    /**
    * Marks an attendee as checked in for an event
    *
    * @param $attendee_id
    *
    * @return bool
    */
    public function checkin( $attendee_id ) {
    update_post_meta( $attendee_id, $this->checkin_key, 1 );
    do_action( 'wootickets_checkin', $attendee_id );
    return true;
    }

    EDD Tickets has a similar function, but in that the action is:

    do_action( 'eddtickets_checkin', $attendee_id );

    Let me know if you have any follow up questions.

    Thanks

    #993050
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Is there a hook for when someone is checked in?’ is closed to new replies.