Multibanco, MB WAY, Credit card, Apple Pay, Google Pay, Payshop, and PIX (ifthenpay) for WooCommerce 12.2.0 has 37 actions and 151 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 Multibanco, MB WAY, Credit card, Apple Pay, Google Pay, Payshop, and PIX (ifthenpay) for WooCommerce fires an action
add_action( 'gateway_ifthen_callback_payment_failed', function( $arg1, $err, $_GET ) {
// Your code runs here.
}, 10, 3 );
// Change a value Multibanco, MB WAY, Credit card, Apple Pay, Google Pay, Payshop, and PIX (ifthenpay) for WooCommerce is about to use
add_filter( 'multibanco_ifthen_hide_settings_right_bar', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
apply_filters( 'multibanco_ifthen_hide_settings_right_bar', false ); -
apply_filters( 'ifthen_webservice_send_order_number_instead_id', false ); -
do_action( 'gateway_ifthen_callback_payment_failed', $order->get_id(), $err, $_GET ); -
do_action( 'mbway_ifthen_callback_payment_failed', $order->get_id(), $err, $_GET ); -
do_action( 'payshop_ifthen_callback_payment_failed', $order->get_id(), $err, $_GET ); -
do_action( 'creditcard_ifthen_callback_payment_failed', $order_id, $error, $_GET ); -
apply_filters( 'gateway_ifthen_sandbox', false ); -
apply_filters( 'ifthen_allow_settings_woocommerce_not_euro', false ); -
do_action( 'multibanco_ifthen_callback_payment_failed', $order->get_id(), $err, $_GET ); -
apply_filters( 'woocommerce_gateway_icon', $icon_html, $this->id ); -
apply_filters( 'mbway_ifthen_webservice_desc', $desc, $order->get_id() ); -
apply_filters( 'multibanco_ifthen_hide_newmethod_notifications', false ); -
apply_filters( 'creditcard_ifthen_sandbox', false ); -
apply_filters( 'mbway_ifthen_checkout_default_phone_number', '' ); -
apply_filters( 'multibanco_ifthen_set_on_hold', true, $order->get_id() ); -
apply_filters( "woocommerce_settings_api_sanitized_fields_{$this->id}", $this->settings ); -
do_action( 'creditcard_ifthen_callback_payment_complete', $order->get_id(), $_GET ); -
apply_filters( 'creditcard_ifthen_valid_callback_paid_status', array( 'processing', 'completed' ) ); -
apply_filters( 'gateway_ifthen_add_frontend_title', true ); -
apply_filters( 'gateway_ifthen_valid_callback_pending_status', WC_IfthenPay_Webdados()->unpaid_statuses ); -
apply_filters( 'mbway_ifthen_checkout_default_country_code', WC()->countries->get_base_country() ); -
apply_filters( 'mbway_ifthen_checkout_phone_input_class', 'input-text' ); -
apply_filters( 'multibanco_ifthen_base_ent_subent', array( 'ent' => $this->multibanco_settings['ent'], 'subent' => $this->multibanco_settings['subent'], ), $order ); -
apply_filters( 'multibanco_ifthen_base_mbkey', $this->multibanco_settings['mbkey'], $order ); -
do_action( 'multibanco_ifthen_created_reference', array( 'ent' => $details['ent'], 'ref' => $details['ref'], ), $order->get_id(), $force_change ); -
apply_filters( 'multibanco_ifthen_incremental_expire_days', 0 ); -
apply_filters( 'payshop_ifthen_set_on_hold', true, $order->get_id() ); -
apply_filters( 'credicard_ifthen_notify_url', $this->creditcard_notify_url ); -
do_action( 'creditcard_ifthen_after_settings_intro' ); -
apply_filters( 'creditcard_ifthen_api_timeout', 15 ); -
do_action( 'creditcard_ifthen_before_process_payment', $order ); -
apply_filters( 'creditcard_ifthen_blocks_payment_method_data', array( 'title' => WC_IfthenPay_Webdados()->get_gateway_title_or_description_for_blocks( $this->name, $this->settings, 'title' ), 'description' => WC_IfthenPay_Webdados()->get_gateway_title_or_description_for_blocks( $this->name, $this->settings, 'description' ), 'icon' => WC_IfthenPay_Webdados()->creditcard_icon, 'icon_width' => 28, 'icon_height' => 24, 'only_portugal' => $this->settings['only_... ); -
do_action( 'creditcard_ifthen_callback_refund_complete', $order->get_id() ); -
do_action( 'creditcard_ifthen_callback_refund_failed', 0, $err, $_GET ); -
apply_filters( 'creditcard_ifthen_cancel_order_on_back', false, $get_order['order'] ); -
do_action( 'creditcard_ifthen_created_reference', $body->RequestId, $order->get_id() ); -
apply_filters( 'creditcard_ifthen_email_hook', 'woocommerce_email_before_order_table' ); -
apply_filters( 'creditcard_ifthen_email_hook_priority', 10 ); -
apply_filters( 'creditcard_ifthen_email_instructions_payment_received', ob_get_clean(), $order_id ); -
apply_filters( 'creditcard_ifthen_email_instructions_payment_received_send', true, $order->get_id() ); -
apply_filters( 'creditcard_ifthen_hide_my_account_pay_button', false ); -
apply_filters( 'creditcard_ifthen_notify_url', apply_filters( 'credicard_ifthen_notify_url', $this->creditcard_notify_url ) ); -
apply_filters( 'creditcard_ifthen_order_initial_status_pending', true ); -
apply_filters( 'creditcard_ifthen_send_email_instructions', true, $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'creditcard_ifthen_subscription_email_hook', 'woocommerce_email_before_subscription_table' ); -
apply_filters( 'creditcard_ifthen_subscription_email_hook_priority', 10 ); -
apply_filters( 'creditcard_ifthen_valid_callback_pending_status', WC_IfthenPay_Webdados()->unpaid_statuses ); -
do_action( 'gateway_ifthen_after_callback_activation', $this ); -
do_action( 'gateway_ifthen_after_thankyou_instructions_table', $order ); -
apply_filters( 'gateway_ifthen_allow_dynamic_gateways', false ); -
apply_filters( 'gateway_ifthen_allow_static_gateways', false ); -
apply_filters( 'gateway_ifthen_api_timeout', 15 ); -
do_action( 'gateway_ifthen_before_process_payment', $order ); -
apply_filters( 'gateway_ifthen_blocks_payment_method_data', array( 'title' => $title, 'description' => WC_IfthenPay_Webdados()->get_gateway_title_or_description_for_blocks( $this->name, $this->settings, 'description' ), 'icon' => WC_IfthenPay_Webdados()->gateway_ifthen_icon, 'icon_width' => 24, 'icon_height' => 24, 'only_portugal' => $this->settings['only_portugal'] === 'yes', 'only_above' => floatval( $this->settings['only_above'] ) > 0 ? floatval( $th... ); -
do_action( 'gateway_ifthen_callback_payment_complete', $order->get_id(), $_GET ); -
do_action( 'gateway_ifthen_callback_refund_complete', $order->get_id() ); -
do_action( 'gateway_ifthen_callback_refund_failed', 0, $err, $_GET ); -
apply_filters( 'gateway_ifthen_check_order_status_thankyou_interval', 5 ); -
do_action( 'gateway_ifthen_created_reference', $body->PinCode, $order->get_id() ); -
apply_filters( 'gateway_ifthen_email_hook', 'woocommerce_email_before_order_table' ); -
apply_filters( 'gateway_ifthen_email_hook_priority', 10 ); -
apply_filters( 'gateway_ifthen_email_instructions_payment_received', ob_get_clean(), $order_id ); -
apply_filters( 'gateway_ifthen_email_instructions_payment_received_send', true, $order->get_id() ); -
apply_filters( 'gateway_ifthen_enable_check_order_status_thankyou', true, $order->get_id() ); -
apply_filters( 'gateway_ifthen_force_callback_reactivation', false ); -
apply_filters( 'gateway_ifthen_hide_my_account_pay_button', false ); -
apply_filters( 'gateway_ifthen_notify_url', $this->gateway_ifthen_notify_url ); -
apply_filters( 'gateway_ifthen_order_initial_status_pending', true ); -
do_action( 'gateway_ifthen_return_payment_gateway_complete', $order->get_id(), $_GET ); -
do_action( 'gateway_ifthen_return_payment_gateway_failed', $order_id, $error, $_GET ); -
apply_filters( 'gateway_ifthen_send_email_instructions', true, $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'gateway_ifthen_thankyou_instructions_table_html', ob_get_clean(), round( $order_total, 2 ), $order_id ); -
apply_filters( 'ifthen_backoffice_key', '' ); -
apply_filters( 'ifthen_callback_webservice_timeout', 15 ); -
apply_filters( 'ifthen_debug_log_extra', false ); -
apply_filters( 'ifthen_disable_disable_if_currency_not_euro', false, $gateway_id ); -
apply_filters( 'ifthen_disable_disable_only_above_or_below', false, $gateway_id ); -
apply_filters( 'ifthen_disable_disable_unless_portugal', false, $gateway_id ); -
apply_filters( 'ifthen_fix_polylang_home_url', true ); -
apply_filters( 'ifthen_show_old_techonology_notice', true ); -
apply_filters( 'ifthen_unpaid_statuses', $this->unpaid_statuses ); -
do_action( 'mbway_ifthen_after_process_payment', $order, $phone ); -
do_action( 'mbway_ifthen_after_settings_intro' ); -
do_action( 'mbway_ifthen_after_thankyou_instructions_table', $order ); -
do_action( 'mbway_ifthen_before_process_payment', $order ); -
apply_filters( 'mbway_ifthen_blocks_payment_method_data', $data ); -
do_action( 'mbway_ifthen_callback_payment_complete', $order->get_id(), $_GET ); -
do_action( 'mbway_ifthen_callback_refund_complete', $order->get_id() ); -
do_action( 'mbway_ifthen_callback_refund_failed', 0, $err, $_GET ); -
apply_filters( 'mbway_ifthen_cancel_unpaid_orders', false ); -
apply_filters( 'mbway_ifthen_check_order_status_thankyou_interval', 10 ); -
do_action( 'mbway_ifthen_checkout_after_phone_number' ); -
do_action( 'mbway_ifthen_checkout_before_phone_number' ); -
apply_filters( 'mbway_ifthen_checkout_phone_field_max_width_break_fields', '400px' ); -
do_action( 'mbway_ifthen_created_reference', $id_pedido, $order->get_id(), $phone ); -
apply_filters( 'mbway_ifthen_email_hook', 'woocommerce_email_before_order_table' ); -
apply_filters( 'mbway_ifthen_email_hook_priority', 10 ); -
apply_filters( 'mbway_ifthen_email_instructions_payment_received', ob_get_clean(), $order_id ); -
apply_filters( 'mbway_ifthen_email_instructions_payment_received_send', true, $order->get_id() ); -
apply_filters( 'mbway_ifthen_email_instructions_pending_send', true, $order->get_id() ); -
apply_filters( 'mbway_ifthen_email_instructions_table_html', ob_get_clean(), round( $order_total, 2 ), $order_id ); -
apply_filters( 'mbway_ifthen_enable_check_order_status_thankyou', true, $order->get_id() ); -
apply_filters( 'mbway_ifthen_enable_pay_another_method_thankyou', true, $order->get_id() ); -
apply_filters( 'mbway_ifthen_force_check_order_status_thankyou', false ); -
apply_filters( 'mbway_ifthen_format_expiration', $exp_formated, $exp, $order_id ); -
apply_filters( 'mbway_ifthen_hide_my_account_pay_button', false ); -
apply_filters( 'mbway_ifthen_notify_url', $this->mbway_notify_url ); -
apply_filters( 'mbway_ifthen_order_initial_status_pending', true ); -
apply_filters( 'mbway_ifthen_pay_another_method_button_text', __( 'Click here if you wish to use another payment method', 'multibanco-ifthen-software-gateway-for-woocommerce' ) ); -
apply_filters( 'mbway_ifthen_send_email_instructions', true, $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'mbway_ifthen_show_callback_notice', true ); -
apply_filters( 'mbway_ifthen_subscription_email_hook', 'woocommerce_email_before_subscription_table' ); -
apply_filters( 'mbway_ifthen_subscription_email_hook_priority', 10 ); -
apply_filters( 'mbway_ifthen_thankyou_instructions_table_html', ob_get_clean(), round( $order_total, 2 ), $order_id ); -
apply_filters( 'mbway_ifthen_thankyou_instructions_table_html_expired', ob_get_clean(), round( $order_total, 2 ), $order->get_id() ); -
apply_filters( 'mbway_ifthen_valid_callback_pending_status', WC_IfthenPay_Webdados()->unpaid_statuses ); -
apply_filters( 'mbway_ifthen_webservice_timeout', 15 ); -
do_action( 'multibanco_ifthen_after_settings_intro' ); -
apply_filters( 'multibanco_ifthen_base_creditcardkey', $this->creditcardkey, $order ); -
apply_filters( 'multibanco_ifthen_base_gatewaykey', $this->gatewaykey, $order ); -
apply_filters( 'multibanco_ifthen_base_mbwaykey', $this->mbway_settings['mbwaykey'], $order ); -
apply_filters( 'multibanco_ifthen_base_payshopkey', $this->payshopkey, $order ); -
do_action( 'multibanco_ifthen_before_process_payment', $order ); -
apply_filters( 'multibanco_ifthen_blocks_payment_method_data', array( 'title' => WC_IfthenPay_Webdados()->get_gateway_title_or_description_for_blocks( $this->name, $this->settings, 'title' ), 'description' => WC_IfthenPay_Webdados()->get_gateway_title_or_description_for_blocks( $this->name, $this->settings, 'description' ), 'icon' => WC_IfthenPay_Webdados()->multibanco_icon, 'icon_width' => 28, 'icon_height' => 24, 'only_portugal' => $this->settings['only_... ); -
do_action( 'multibanco_ifthen_callback_payment_complete', $order->get_id(), $_GET ); -
apply_filters( 'multibanco_ifthen_cancel_unpaid_orders', false ); -
apply_filters( 'multibanco_ifthen_creditcard_settings_fields', array() ); -
apply_filters( 'multibanco_ifthen_creditcard_settings_fields_all', $this->form_fields ); -
apply_filters( 'multibanco_ifthen_email_hook', 'woocommerce_email_before_order_table' ); -
apply_filters( 'multibanco_ifthen_email_hook_priority', 10 ); -
apply_filters( 'multibanco_ifthen_email_instructions_payment_received', ob_get_clean(), $order_id ); -
apply_filters( 'multibanco_ifthen_email_instructions_payment_received_send', true, $order->get_id() ); -
apply_filters( 'multibanco_ifthen_email_instructions_pending_send', true, $order->get_id() ); -
apply_filters( 'multibanco_ifthen_email_instructions_table_html', ob_get_clean(), $ent, $ref, $order_total, $order_id ); -
apply_filters( 'multibanco_ifthen_format_expiration', $exp_formated, $exp, $order_id ); -
apply_filters( 'multibanco_ifthen_format_ref', trim( chunk_split( trim( $ref ), 3, ' ' ) ) ); -
apply_filters( 'multibanco_ifthen_gateway_ifthen_settings_fields', array() ); -
apply_filters( 'multibanco_ifthen_gateway_ifthen_settings_fields_all', $this->form_fields ); -
apply_filters( 'multibanco_ifthen_hide_my_account_pay_button', false ); -
apply_filters( 'multibanco_ifthen_maybe_change_email_locale', false ); -
apply_filters( 'multibanco_ifthen_mbway_settings_fields', array() ); -
apply_filters( 'multibanco_ifthen_mbway_settings_fields_all', $this->form_fields ); -
apply_filters( 'multibanco_ifthen_multibanco_settings_fields', array() ); -
apply_filters( 'multibanco_ifthen_multibanco_settings_fields_all', $this->form_fields ); -
apply_filters( 'multibanco_ifthen_notify_url', $this->multibanco_notify_url ); -
apply_filters( 'multibanco_ifthen_payshop_settings_fields', array() ); -
apply_filters( 'multibanco_ifthen_payshop_settings_fields_all', $this->form_fields ); -
apply_filters( 'multibanco_ifthen_ref_mode', $this->multibanco_ref_mode ); -
apply_filters( 'multibanco_ifthen_send_email_instructions', true, $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'multibanco_ifthen_show_callback_notice', true ); -
apply_filters( 'multibanco_ifthen_sms_instructions', $instructions, $ref['ent'], $ref['ref'], $ref['val'], $order->get_id() ); -
apply_filters( 'multibanco_ifthen_subscription_email_hook', 'woocommerce_email_before_subscription_table' ); -
apply_filters( 'multibanco_ifthen_subscription_email_hook_priority', 10 ); -
apply_filters( 'multibanco_ifthen_thankyou_instructions_table_html', ob_get_clean(), $multibanco_order_details['ent'], $multibanco_order_details['ref'], $order_total, $order_id ); -
apply_filters( 'multibanco_ifthen_valid_callback_pending_status', WC_IfthenPay_Webdados()->unpaid_statuses ); -
apply_filters( 'multibanco_ifthen_valid_order_classes', array( 'WC_Order', 'Automattic\WooCommerce\Admin\Overrides\Order', ) ); -
apply_filters( 'multibanco_ifthen_webservice_desc', $desc, $order->get_id() ); -
apply_filters( 'multibanco_ifthen_webservice_expire_days', trim( $this->multibanco_settings['api_expiry'] ), $order ); -
apply_filters( 'multibanco_ifthen_webservice_timeout', 15 ); -
do_action( 'payshop_ifthen_before_process_payment', $order ); -
apply_filters( 'payshop_ifthen_blocks_payment_method_data', array( 'title' => WC_IfthenPay_Webdados()->get_gateway_title_or_description_for_blocks( $this->name, $this->settings, 'title' ), 'description' => WC_IfthenPay_Webdados()->get_gateway_title_or_description_for_blocks( $this->name, $this->settings, 'description' ), 'icon' => WC_IfthenPay_Webdados()->payshop_icon, 'only_portugal' => $this->settings['only_portugal'] === 'yes', 'only_above' => floatv... ); -
do_action( 'payshop_ifthen_callback_payment_complete', $order->get_id(), $_GET ); -
apply_filters( 'payshop_ifthen_cancel_unpaid_orders', false ); -
do_action( 'payshop_ifthen_created_reference', trim( $response_data->Reference ), $order->get_id() ); -
apply_filters( 'payshop_ifthen_email_hook', 'woocommerce_email_before_order_table' ); -
apply_filters( 'payshop_ifthen_email_hook_priority', 10 ); -
apply_filters( 'payshop_ifthen_email_instructions_payment_received', ob_get_clean(), $order_id ); -
apply_filters( 'payshop_ifthen_email_instructions_payment_received_send', true, $order->get_id() ); -
apply_filters( 'payshop_ifthen_email_instructions_pending_send', true, $order->get_id() ); -
apply_filters( 'payshop_ifthen_email_instructions_table_html', ob_get_clean(), round( $order_total, 2 ), $order_id ); -
apply_filters( 'payshop_ifthen_format_expiration', $exp_formated, $exp, $order_id ); -
apply_filters( 'payshop_ifthen_format_ref', trim( chunk_split( trim( $ref ), 3, ' ' ) ) ); -
apply_filters( 'payshop_ifthen_hide_my_account_pay_button', false ); -
apply_filters( 'payshop_ifthen_notify_url', $this->payshop_notify_url ); -
apply_filters( 'payshop_ifthen_send_email_instructions', true, $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'payshop_ifthen_show_callback_notice', true ); -
apply_filters( 'payshop_ifthen_sms_instructions', $instructions, $ref['ref'], $ref['val'], $ref['exp'], $order->get_id() ); -
apply_filters( 'payshop_ifthen_subscription_email_hook', 'woocommerce_email_before_subscription_table' ); -
apply_filters( 'payshop_ifthen_subscription_email_hook_priority', 10 ); -
apply_filters( 'payshop_ifthen_thankyou_instructions_table_html', ob_get_clean(), round( $order_total, 2 ), $order_id ); -
apply_filters( 'payshop_ifthen_thankyou_instructions_table_html_expired', ob_get_clean(), round( $order_total, 2 ), $order->get_id() ); -
apply_filters( 'payshop_ifthen_valid_callback_pending_status', WC_IfthenPay_Webdados()->unpaid_statuses ); -
apply_filters( 'payshop_ifthen_validity_options', $validity_options ); -
apply_filters( 'payshop_ifthen_webservice_timeout', 15 ); -
apply_filters( 'refund_ifthen_api_timeout', 30 ); -
apply_filters( 'woocommerce_cancel_unpaid_order', 'checkout' === $unpaid_order->get_created_via(), $unpaid_order ); -
apply_filters( 'wpml_translate_single_string', $gateway_settings[ $field ], 'admin_texts_woocommerce_gateways', $gateway_id . '_gateway_' . $field );
Generated from Multibanco, MB WAY, Credit card, Apple Pay, Google Pay, Payshop, and PIX (ifthenpay) for WooCommerce'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: