Gateway Zibal for WooCommerce 2.1 has 9 actions and 18 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 Gateway Zibal for WooCommerce fires an action
add_action( 'WC_Gateway_Payment_Actions', function( $action ) {
// Your code runs here.
}, 10, 1 );
// Change a value Gateway Zibal for WooCommerce is about to use
add_filter( 'WC_Gateway_Zibal_Currency', function( $woocommerce_currency, $arg2 ) {
// Change $woocommerce_currency here.
return $woocommerce_currency;
}, 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
-
do_action( 'WC_Gateway_Payment_Actions', $action ); -
apply_filters( 'WC_Gateway_Zibal_Currency', get_woocommerce_currency(), 0 ); -
apply_filters( 'WC_Gateway_Zibal_Config', array( 'base_confing' => array( 'title' => __('تنظیمات پایه ای', 'zibal-woocommerce'), 'type' => 'title', 'description' => '', ), 'enabled' => array( 'title' => __('فعالسازی/غیرفعالسازی', 'zibal-woocommerce'), 'type' => 'checkbox', 'label' => __('فعالسازی درگاه زیبال', 'zibal-woocommerce'), 'description' => __('برای فعالسازی درگا... ); -
apply_filters( 'WC_Gateway_Zibal_Description', $Description, $order_id ); -
apply_filters( 'WC_Gateway_Zibal_Form', $form, $order_id, $woocommerce ); -
do_action( 'WC_Gateway_Zibal_Gateway_After_Form', $order_id, $woocommerce ); -
do_action( 'WC_Gateway_Zibal_Gateway_Before_Form', $order_id, $woocommerce ); -
do_action( 'WC_Gateway_Zibal_Gateway_Payment', $order_id, $Description ); -
do_action( 'WC_Gateway_Zibal_Return_from_Gateway_Failed', $order_id, $Transaction_ID, $Fault ); -
apply_filters( 'WC_Gateway_Zibal_Return_from_Gateway_Failed_Note', $Note, $order_id, $Transaction_ID, $Fault ); -
apply_filters( 'WC_Gateway_Zibal_Return_from_Gateway_Failed_Notice', $Notice, $order_id, $Transaction_ID, $Fault ); -
do_action( 'WC_Gateway_Zibal_Return_from_Gateway_No_Order_ID', $order_id, $Transaction_ID, $Fault ); -
apply_filters( 'WC_Gateway_Zibal_Return_from_Gateway_No_Order_ID_Notice', $Notice, $order_id, $Fault ); -
do_action( 'WC_Gateway_Zibal_Return_from_Gateway_ReSuccess', $order_id, $Transaction_ID ); -
apply_filters( 'WC_Gateway_Zibal_Return_from_Gateway_ReSuccess_Notice', $Notice, $order_id, $Transaction_ID ); -
do_action( 'WC_Gateway_Zibal_Return_from_Gateway_Success', $order_id, $Transaction_ID ); -
apply_filters( 'WC_Gateway_Zibal_Return_from_Gateway_Success_Note', $Note, $order_id, $Transaction_ID, $verify_cardnum, $verify_tracking ); -
apply_filters( 'WC_Gateway_Zibal_Return_from_Gateway_Success_Notice', $Notice, $order_id, $Transaction_ID ); -
do_action( 'WC_Gateway_Zibal_Send_to_Gateway_Failed', $order_id, $Fault ); -
apply_filters( 'WC_Gateway_Zibal_Send_to_Gateway_Failed_Note', $Note, $order_id, $Fault ); -
apply_filters( 'WC_Gateway_Zibal_Send_to_Gateway_Failed_Notice', $Notice, $order_id, $Fault ); -
apply_filters( 'WC_Gateway_Zibal_User_Agent', 'Zibal-WooCommerce-Plugin/' . (defined('WOO_ZIBAL_VERSION') ? WOO_ZIBAL_VERSION : '2.1.0') ); -
apply_filters( 'woo_zibal_logo', WOO_GAPIRDUZIBAL . 'assets/images/logo.png' ); -
woocommerce_order_amount_total_IRANIAN_gateways_after_check_currency
filter Copy link Customise this hookapply_filters( 'woocommerce_order_amount_total_IRANIAN_gateways_after_check_currency', $amount, $currency ); -
woocommerce_order_amount_total_IRANIAN_gateways_before_check_currency
filter Copy link Customise this hookapply_filters( 'woocommerce_order_amount_total_IRANIAN_gateways_before_check_currency', $amount, $currency ); -
apply_filters( 'woocommerce_order_amount_total_IRANIAN_gateways_irt', $amount, $currency ); -
apply_filters( 'woocommerce_order_amount_total_Zibal_gateway', $amount, $currency );
Generated from Gateway Zibal 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: