Title: Help with WordPress Hooks
Last modified: August 26, 2019

---

# Help with WordPress Hooks

 *  Resolved [alpinaweb](https://wordpress.org/support/users/alpinaweb/)
 * (@alpinaweb)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/help-with-wordpress-hooks/)
 * Hello,
    I would like to use hooks to execute some functions on events related
   to the plugin. Do something on “Appointment Booked Successfuly” for instance.
   Is there a section in the documentation where i can learn the hooks of the plugin?
   Are there any hooks in the plugin?
 * Thanks in advance.
    Best Regards

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/help-with-wordpress-hooks/#post-11870189)
 * Hi,
 * The hooks are not currently documented, however the hook you are looking for “
   Appointment Booked Successfuly” is the following:
 *     ```
       add_action( 'cpappb_process_data', 'my_function_appointment_booked', 10, 1 );
   
       function my_function_appointment_booked($params)
       {
           // ... 
       }
       ```
   
 * The parameter $params contains an associative array with the selected date-time
   and form data.
 * Thank you for using the plugin!
 *  Thread Starter [alpinaweb](https://wordpress.org/support/users/alpinaweb/)
 * (@alpinaweb)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/help-with-wordpress-hooks/#post-11881169)
 * Hello,
 * Nice, can you also provide me with the hook to when a Booking Order gets its 
   Status set as “Approved”?
 * Thank you!
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/help-with-wordpress-hooks/#post-11881206)
 * Hi,
 * Hook for booking status modifications:
 *     ```
       add_action( 'cpappb_update_status', 'my_function_appointment_status_changed', 10, 2 );
   
       function my_function_appointment_status_changed($itemnumber, $status)
       {
           // ... 
       }
       ```
   
 * First parameter the booking ID and second parameter the new status.
 * Thank you for using the plugin!

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

The topic ‘Help with WordPress Hooks’ is closed to new replies.

 * ![](https://ps.w.org/appointment-hour-booking/assets/icon-256x256.png?rev=1784135)
 * [Appointment Hour Booking - Booking Calendar](https://wordpress.org/plugins/appointment-hour-booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appointment-hour-booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appointment-hour-booking/)
 * [Active Topics](https://wordpress.org/support/plugin/appointment-hour-booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appointment-hour-booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appointment-hour-booking/reviews/)

## Tags

 * [events](https://wordpress.org/support/topic-tag/events/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/help-with-wordpress-hooks/#post-11881206)
 * Status: resolved