• Resolved jmayorga9112

    (@jmayorga9112)


    hi I would like to hook my function to do something when the status change to confirmed. would you like to tell where it is specifically? i cant find it

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @jmayorga9112,

    That hook would be wpmudev_appointments_update_appointment_status. Here is an example on how to do use it:

    add_action( 'wpmudev_appointments_update_appointment_status', function( $app_id, $new_status, $old_status ){
    
        $appointment = appointments_get_appointment( $app_id );
    
        if ( 'SOMETHING' == $new_status ) {
            //DO STUFF
        }
    
        if ( 'SOMETHING' == $old_status ) {
            //DO STUFF
        }
    
    } );

    kind regards,
    Kasia

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @jmayorga9112

    Hope all is well!

    We’ve not heard from you in a while. I’ve marked this ticket as resolved for now, but if you need anything else at all, we’re here for you, please just reopen the ticket or create a new one.

    Have a great day!

    Cheers,
    Nastia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hook ro confimation’ is closed to new replies.