Appointment Hour Booking 1.6.07 has 9 actions and 19 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Appointment Hour Booking fires an action
add_action( 'cpappb_process_data', function( $params ) {
// Your code runs here.
}, 10, 1 );
// Change a value Appointment Hour Booking is about to use
add_filter( 'cpappb_additional_information', function( $basic_data, $ipaddr ) {
// Change $basic_data here.
return $basic_data;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Includes additional information to the email's message, are passed two * parameters: the basic information, and the IP address */ apply_filters( 'cpappb_additional_information', $basic_data, $myrows[0]->ipaddr ); -
/** * Allows modify the query of messages, passing the query as parameter returns * the new query */ apply_filters( 'cpappb_csv_query', $events_query ); -
/** * Attach or modify attached files, Example for adding ical or PDF attachments */ apply_filters( 'cpappb_email_attachments', $attachments, $params, $this->item ); -
/** * Filters applied before generate the form, is passed as parameter an array * with the forms attributes, and return the list of attributes */ apply_filters( 'cpappb_pre_form', $atts ); -
/** * Action called after inserted the data into database. To the function is * passed an array with submitted data. */ do_action_ref_array( 'cpappb_process_data', array(&$params) ); -
/** * Action called before insert the data into database. To the function is * passed an array with submitted data. */ do_action( 'cpappb_process_data_before_insert', $params ); -
/** * Action called before insert the data into database. To the function are * passed two parameters: the array with submitted data, and the number of form * in the page. */ do_action( 'cpappb_script_after_validation', $this->print_counter, $this->item ); -
/** * Filters applied after generate the form, is passed as parameter the HTML * code of the form with the corresponding <LINK> and <SCRIPT> tags, and * returns the HTML code to includes in the webpage */ apply_filters( 'cpappb_the_form', $buffered_contents, $this->item ); -
do_action( 'cpappb_cache_clean', $this->item ); -
do_action( 'cpappb_item_deleted', $del_id ); -
apply_filters( 'ahb_csslayout', $object->csslayout, $this->item ); -
do_action( 'cp_apphourbooking_do_action_reportstats' ); -
apply_filters( 'cpappb_app_admin_default_status', $this->get_option('defaultpaidstatus', '') ); -
apply_filters( 'cpappb_booking_orders_item', $data, $posted_data ); -
do_action( 'cpappb_cache_check', $formid, $cache_key ); -
do_action( 'cpappb_cache_store', $formid, $cache_key, $dataoutput ); -
apply_filters( 'cpappb_get_option', $value, $field, $this->item ); -
apply_filters( 'cpappb_messages_query', $events_query ); -
apply_filters( 'cpappb_mv_content_admin_filter', $t_content_admin, intval($formid) ); -
apply_filters( 'cpappb_mv_content_public_filter', $t_content_public, intval($formid) ); -
apply_filters( 'cpappb_mv_title_admin_filter', $t_title_admin, intval($formid) ); -
apply_filters( 'cpappb_mv_title_public_filter', $t_title_public, intval($formid) ); -
apply_filters( 'cpappb_redirect', $redirect ); -
apply_filters( 'cpappb_the_availability_filter_second', $cond, intval( $cp_appb_plugin->getId() ) ); -
apply_filters( 'cpappb_the_customjs', $custom_scripts, intval($_GET["cal"]) ); -
do_action( 'cpappb_update_status', $id, $status ); -
apply_filters( 'cpappb_valid_submission', true ); -
apply_filters( 'wpml_object_id', $postid, 'post', TRUE );
Generated from Appointment Hour Booking's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: