ووکامرس فارسی icon
eCommerce & WooCommerce

ووکامرس فارسی hooks reference

  • By PersianScript
  • v10.0.7
  • Updated

ووکامرس فارسی 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.

functions.phpyour child theme
// 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

  • include/class-address.php line 186
    apply_filters( "{$type}_iran_city_class", explode( ',', $classes ), $fields, $type );
  • include/class-address.php line 188
    apply_filters( "{$type}_iran_city_options", [ '' => '' ], $fields, $type );
  • include/class-address.php line 187
    apply_filters( "{$type}_iran_city_type", $type . '_iran_cities', $fields, $type );
  • include/class-address.php line 175
    apply_filters( "{$type}_iran_state_class", explode( ',', $classes ), $fields, $type );
  • include/class-translate.php line 68
    do_action( 'add_meta_boxes', 'woocommerce_persian_translate', 0 );
  • include/class-address.php line 254
    apply_filters( 'iran_cities_field_select_input', $iran_cities, $field_container, $container_class, $container_id, $field_html, $field, $key, $args, $value, $after );
  • include/class-address.php line 283
    apply_filters( 'iran_cities_value_index', 0 );
  • include/class-address.php line 260
    apply_filters( 'persian_woo_iran_cities', PW()->plugin_url( 'assets/js/iran_cities.min.js' ) );
  • src/Admin/Menu.php line 14
    apply_filters( 'persian-woocommerce/reports/menu_capability', 'manage_options' );
  • src/Admin/Menu.php line 54
    apply_filters( 'persian-woocommerce/reports/submenus', $submenus );
  • include/class-tools.php line 594
    do_action( 'PW_after_save_tools', $_POST, $settings, $tab, $section );
  • include/class-tools.php line 590
    do_action( 'PW_before_save_tools', $_POST, $settings, $tab, $section );
  • pw_submenu

    filter
    include/class-core.php line 114
    apply_filters( 'pw_submenu', $submenus );
  • include/class-tools.php line 148
    apply_filters( 'PW_Tools_sections', [] );
  • include/class-tools.php line 500
    apply_filters( 'PW_Tools_settings', $tools );
  • PW_Tools_tabs

    filter
    include/class-tools.php line 141
    apply_filters( 'PW_Tools_tabs', [ 'date' => 'تاریخ شمسی', 'price' => 'گزینه های قیمت', 'checkout' => 'تسویه حساب', 'design' => 'ظاهر', ] );
  • include/gateways/class-zibal.php line 422
    do_action( 'WC_Zibal_Return_from_Gateway_Failed', $order->get_id(), $track_id, $fault );
  • include/gateways/class-zibal.php line 461
    do_action( 'WC_Zibal_Return_from_Gateway_Success', $order->get_id(), $track_id );
  • include/gateways/class-zibal.php line 59
    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: