Package purchase added
amelia_before_package_customer_added_filter
Users can use this filter to manipulate package purchase data before it is added.
Type: filter
Example:
function example($packageCustomer) { // change package data return $packageCustomer; } add_filter('amelia_before_package_customer_added_filter', 'example', 10, 1);
amelia_before_package_customer_added
Users can use this hook to do an action before the package purchase is added.
Type:Â action
Example:
function example($packageCustomer) { // do action } add_action('amelia_before_package_customer_added', 'example', 10, 1);
amelia_after_package_booked_frontend
Users can use this hook to do an action after a package is booked from the frontend.
Type:Â action
Example:
function example($packageCustomer) { // do action } add_action('amelia_after_package_booked_frontend', 'example', 10, 1);
amelia_after_package_booked_backend
Users can use this hook to do an action after a package is booked from the backend.
Type:Â action
Example:
function example($packageCustomer) { // do action } add_action('amelia_after_package_booked_backend', 'example', 10, 1);
Package purchase status updated
amelia_before_package_customer_status_updated
User can use this hook to do an action before the package purchase status is updated.
Type:Â action
Example:
function example($packageCustomer, $status) { // do action } add_action('amelia_before_package_customer_status_updated', 'example', 10, 2);
amelia_after_package_customer_status_updated
Users can use this hook to do an action after the package purchase status is updated.
Type:Â action
Example:
function example($packageCustomer, $status) { // do action } add_action('amelia_after_package_customer_status_updated', 'example', 10, 2);
Package purchase deleted
amelia_before_package_customer_deleted
Users can use this hook to do an action before the package purchase is deleted.
Type:Â action
Example:
function example($packageCustomer) { // do action } add_action('amelia_before_package_customer_deleted', 'example', 10, 1);
amelia_after_package_customer_deleted
Users can use this hook to do an action after the package purchase is deleted.
Type:Â action
Example:
function example($packageCustomer) { // do action } add_action('amelia_after_package_customer_deleted', 'example', 10, 1);
Package booking deleted
amelia_before_package_booking_deleted
Users can use this hook to do an action before the package booking is deleted from the backend.
Type:Â action
Example:
function example($appointment, $removedBooking) { // do action } add_action('amelia_before_package_booking_deleted', 'example', 10, 2);
amelia_after_package_booking_deleted
Users can use this hook to do an action after the package booking is deleted from the backend.
Type:Â action
Example:
function example($appointment, $removedBooking) { // do action } add_action('amelia_after_package_booking_deleted', 'example', 10, 2);