Appointment+ hooks for appointment update

Hello,

I need to know the available hooks for appointment creation and update.
I need to intercept:
- when a new appointment is created and saved from the web
- when a new appointment is created and saved from the admin interface
- when an existing appointment is updated from the admin interface
- when an existing appointment is automatically updated from the system (es: pending appointment going to removed appointment or pending appointment going to payed etc....)
- whatever and whenever else an existing appointment is updated

Can you help me listing the available hooks and which cases they cover ?

Thanks for your help

Antonio

  • Jude

    Howdy Antonio

    Hope you're doing great !!

    This is a universal hook including admin for a new appointment

    do_action( 'app_new_appointment', $insert_id );

    These are front end hooks .. before and after an appointment is confirmed

    add_action( 'wp_ajax_pre_confirmation', array( &$this, 'pre_confirmation' ) ); 			// Get pre_confirmation results
    		add_action( 'wp_ajax_nopriv_pre_confirmation', array( &$this, 'pre_confirmation' ) ); 	// Get pre_confirmation results
    		add_action( 'wp_ajax_post_confirmation', array( &$this, 'post_confirmation' ) ); 		// Do after final confirmation
    		add_action( 'wp_ajax_nopriv_post_confirmation', array( &$this, 'post_confirmation' ) ); // Do after final confirmation

    This is cancellation hook

    add_action( 'wp_ajax_cancel_app', array( &$this, 'cancel' ) ); 							// Cancel appointment from my appointments
    		add_action( 'wp_ajax_nopriv_cancel_app', array( &$this, 'cancel' ) ); 					// Cancel appointment from my appointments

    These are modified hooks

    // Auto-cleanup
    		add_action('app_remove_expired', array($this, 'cleanup_data'));
    		add_action('app_remove_pending', array($this, 'cleanup_data'));
    		// Manual cleanup
    		add_action('app_change_status', array($this, 'manual_cleanup_data'), 10, 2);
    		add_action('app_bulk_status_change', array($this, 'bulk_cleanup_data'));
    		// Delete filters
    		add_action('app_deleted', array($this, 'permanently_deleted_cleanup'));

    Hope that helps

    Cheers
    Jude

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.