ووکامرس فارسی 10.0.7 has 5 actions and 14 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 ووکامرس فارسی fires an action
add_action( 'add_meta_boxes', function( $arg1, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value ووکامرس فارسی is about to use
add_filter( 'iran_cities_field_select_input', function( $iran_cities, $field_container, $container_class, $container_id, $field_html, $field, $key, $args, $value, $after ) {
// Change $iran_cities here.
return $iran_cities;
}, 10, 10 );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
-
{$type}_iran_city_class
filterapply_filters( "{$type}_iran_city_class", explode( ',', $classes ), $fields, $type ); -
{$type}_iran_city_options
filterapply_filters( "{$type}_iran_city_options", [ '' => '' ], $fields, $type ); -
{$type}_iran_city_type
filterapply_filters( "{$type}_iran_city_type", $type . '_iran_cities', $fields, $type ); -
{$type}_iran_state_class
filterapply_filters( "{$type}_iran_state_class", explode( ',', $classes ), $fields, $type ); -
add_meta_boxes
actiondo_action( 'add_meta_boxes', 'woocommerce_persian_translate', 0 ); -
apply_filters( 'iran_cities_field_select_input', $iran_cities, $field_container, $container_class, $container_id, $field_html, $field, $key, $args, $value, $after ); -
iran_cities_value_index
filterapply_filters( 'iran_cities_value_index', 0 ); -
persian_woo_iran_cities
filterapply_filters( 'persian_woo_iran_cities', PW()->plugin_url( 'assets/js/iran_cities.min.js' ) ); -
PW_after_save_tools
actiondo_action( 'PW_after_save_tools', $_POST, $settings, $tab, $section ); -
PW_before_save_tools
actiondo_action( 'PW_before_save_tools', $_POST, $settings, $tab, $section ); -
PW_Tools_sections
filterapply_filters( 'PW_Tools_sections', [] ); -
PW_Tools_settings
filterapply_filters( 'PW_Tools_settings', $tools ); -
PW_Tools_tabs
filterapply_filters( 'PW_Tools_tabs', [ 'date' => 'تاریخ شمسی', 'price' => 'گزینه های قیمت', 'checkout' => 'تسویه حساب', 'design' => 'ظاهر', ] ); -
do_action( 'WC_Zibal_Return_from_Gateway_Failed', $order->get_id(), $track_id, $fault ); -
do_action( 'WC_Zibal_Return_from_Gateway_Success', $order->get_id(), $track_id ); -
apply_filters( 'woocommerce_ir_gateway_zibal_icon', PW()->plugin_url( 'assets/images/zibal.png' ) );
Generated from ووکامرس فارسی's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: