WooCommerce
amelia_before_wc_cart_filter
Users can use this filter to change the data before it is added to the cart
Type: filter
Example:
function example($appointmentData) { // change appointment data return $appointmentData; } add_filter('amelia_before_wc_cart_filter', 'example', 10, 1);
amelia_before_wc_cart
Users can use this hook to do an action before the appointment is added to the cart.
Type:Â action
Example:
function example($appointmentData) { // do action } add_action('amelia_before_wc_cart', 'example', 10, 1);
amelia_get_wc_products_filter
Users can use this filter to change the WooCommerce products returned to the backend.
Type: filter
Example:
function example($products) { // change products return $products; } add_filter('amelia_get_wc_products_filter', 'example', 10, 1);
amelia_get_wc_products
Users can use this hook to do an action before the WooCommerce products are returned to the backend.
Type:Â action
Example:
function example($products) { // do action } add_action('amelia_get_wc_products', 'example', 10, 1);
amelia_checkout_data
Users can use this hook to change the checkout data (billing_first_name, billing_last_name, billing_email, billing_phone)
Type: filter
Example:
function example($data, $container, $wc_key) { // wc_key - key of the Amelia cart item return $data; } add_filter('amelia_checkout_data', 'example', 10, 3);
amelia_get_modified_price
Users can use this hook to change the payment amount for WooCommerce
Type: filter
Example:
function example($paymentAmount, $wcItemAmeliaCache, $bookableData) { return $paymentAmount; } add_filter('amelia_get_modified_price', 'example', 10, 3);
amelia_wc_redirect_page
Users can use this hook to change the redirect URL for WooCommerce (the cart or checkout URL)
Type: filter
Example:
function example($redirectUrl, $appointmentData) { return $redirectUrl; } add_filter('amelia_wc_redirect_page', 'example', 10, 2);
Mollie
amelia_before_mollie_redirect_filter
Users can change the appointment data before the Mollie redirect link is returned.
Type:Â filter
Example:
function example($bookingData) { // change booking data return $bookingData; } add_filter('amelia_before_mollie_redirect_filter', 'example', 10, 1);
amelia_before_mollie_redirect
User can use this hook to do an action before the Mollie redirect url is returned.
Type:Â action
Example:
function example($bookingData) { // do action } add_action('amelia_before_mollie_redirect', 'example', 10, 1);
PayPal
amelia_before_paypal_execute_filter
Users can change the payment amount before PayPal payment is executed.
Type:Â filter
Example:
function example($paymentAmount, $reservation) { // change amount return $paymentAmount; } add_filter('amelia_before_paypal_execute_filter', 'example', 10, 2);
amelia_before_paypal_execute
Users can use this hook to do an action before the PayPal payment is executed.
Type:Â action
Example:
function example($paymentAmount, $reservation) { // do action } add_action('amelia_before_paypal_execute', 'example', 10, 2);
amelia_after_paypal_execute_filter
Users can change the PayPal response after the PayPal payment is executed.
Type:Â filter
Example:
function example($response, $reservation) { // change response return $response; } add_filter('amelia_after_paypal_execute_filter', 'example', 10, 2);
amelia_after_paypal_execute
Users can use this hook to do an action after the PayPal payment is executed.
Type:Â action
Example:
function example($response, $reservation) { // do action } add_action('amelia_after_paypal_execute', 'example', 10, 2);
Stripe
amelia_before_stripe_payment
Users can change the Stripe data before the payment is executed.
Type:Â filter
Example:
function example_callback($stripeData) { // change stripe data return $stripeData; } add_filter('amelia_before_stripe_payment', 'example_callback', 10, 1);
Razorpay
amelia_before_razorpay_execute_filter
Users can change order data before the Razorpay payment is executed
Type:Â filter
Example:
function example($orderData, $reservation) { // change data (amount and notes) return $orderData; } add_filter('amelia_before_razorpay_execute_filter', 'example', 10, 2);
amelia_before_razorpay_execute
Users can use this hook to do an action before the Razorpay payment is executed.
Type:Â action
Example:
function example($orderData, $reservation) { // do action } add_action('amelia_before_razorpay_execute', 'example', 10, 2);
amelia_after_razorpay_execute_filter
Users can change response after the Razorpay payment is executed
Type:Â filter
Example:
function example($data, $reservation) { // change data return $data; } add_filter('amelia_after_razorpay_execute_filter', 'example', 10, 2);
amelia_after_razorpay_execute
Users can use this hook to do an action after the Razorpay payment is executed.
Type:Â action
Example:
function example($response, $reservation) { // do action } add_action('amelia_after_razorpay_execute', 'example', 10, 2);