Parsi Date icon
eCommerce & WooCommerce

Parsi Date hooks reference

  • By Morteza Geransayeh
  • v6.5.2
  • Updated

Parsi Date 6.5.2 has 31 actions and 80 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 Parsi Date fires an action
add_action( 'wp_parsidate_jalali_datepicker_enqueue', function( $arg1 ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Parsi Date is about to use
add_filter( 'wp_parsidate_brizy_content', function( $value, $post ) {
	// Change $value here.
	return $value;
}, 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

  • inc/App/Integration/Brizy.php line 240 · used in 2 places
    /**
     * Filters the converted Brizy content before it is returned
     */
    apply_filters( 'wp_parsidate_brizy_content', TextProtector::restore( $working, $protected ), $post );
  • inc/Widget/DashboardWidget.php line 193
    /**
     * Filters the primary link title for the 'WordPress Events and News' dashboard
     * widget.
     */
    apply_filters( 'dashboard_primary_title', esc_html__( 'ParsiDate', 'wp-parsidate' ) );
  • inc/App/Core/FixTitle.php line 50
    /**
     * Filters the separator for the document title.
     */
    apply_filters( 'document_title_separator', $sep );
  • inc/App/Core/FixPermalink.php line 303
    /**
     * Filters the category that gets used in the %category% permalink token.
     */
    apply_filters( 'post_link_category', $cats[0], $cats, $post );
  • the_title

    filter
    inc/Core/Calendar.php line 308
    /**
     * This filter is documented in wp-includes/post-template.php
     */
    apply_filters( 'the_title', $ak_post_title->post_title, $ak_post_title->ID );
  • inc/App/Integration/Brizy.php line 528
    /**
     * Filters the editor font CSS applied to Brizy's editor chrome
     */
    apply_filters( 'wp_parsidate_brizy_editor_css', $css );
  • inc/Helper/Posts.php line 22
    /**
     * Filters post types ignore list
     */
    apply_filters( 'wp_parsidate_posts_types_ignore_list', $ignore, $args );
  • inc/App/Integration/WooCommerce.php line 326
    /**
     * here we pass those fields we want to convert from Persian to English other
     * developers can hook into this filter and add their fields too
     */
    apply_filters( 'wpp_woocommerce_checkout_persian_fields', $persian_fields );
  • inc/App/Integration/ACF/class-wpp-acf-datepicker-v4.php line 124 · used in 8 places
    do_action( 'wp_parsidate_jalali_datepicker_enqueue', 'acf-4' );
  • inc/App/Integration/ACF/class-wpp-acf-datepicker-v4.php line 143 · used in 5 places
    apply_filters( 'wpp_acf_after_load_jalali_date', $value );
  • inc/App/AppAssets.php line 113 · used in 4 places
    do_action( 'wp_parsidate_jalali_datepicker_enqueued', $moduleName );
  • inc/App/Integration/WooCommerce/wc-gateways/wpp-mellat-gateway.php line 74 · used in 4 places
    apply_filters( "wpp_wc_{$this->id}_gateway_config", array( 'enabled' => array( 'title' => esc_html__( 'Enabled/Disabled', 'wp-parsidate' ), 'type' => 'checkbox', 'label' => sprintf( esc_html__( 'Activate or deactivate %s gateway', 'wp-parsidate' ), $this->gateway_name ), 'default' => 'no' ), 'terminal' => array( 'title' => esc_html__( 'Terminal No.', 'wp-parsidate' ), 'type' => 'text', 'default' => '', 'desc_tip' => false ), 'username' => array(... );
  • inc/Admin/AdminCore.php line 40 · used in 3 places
    apply_filters( "wp_parsidate_{self::tab}_settings_sections", [] );
  • inc/App/Integration/ACF/class-wpp-acf-datepicker-v4.php line 162 · used in 3 places
    apply_filters( 'wpp_acf_before_update_jalali_date', $value );
  • inc/App/Integration/WooCommerce/wc-gateways/wpp-mellat-gateway.php line 425 · used in 3 places
    do_action( "wpp_wc_{$this->id}_gateway_completed_payment", $order, $params );
  • inc/App/Integration/WooCommerce/wc-gateways/wpp-mellat-gateway.php line 331 · used in 3 places
    do_action( "wpp_wc_{$this->id}_gateway_failed_payment", $order );
  • inc/App/Integration/ACF/class-wpp-acf-datepicker-v4.php line 87 · used in 2 places
    do_action( 'acf/create_field', array( 'type' => 'text', 'name' => 'fields[' . $key . '][placeholder]', 'value' => $field['placeholder'], 'layout' => 'horizontal' ) );
  • inc/App/AppAssets.php line 304 · used in 2 places
    apply_filters( 'disable_months_dropdown', false, $postType );
  • widget_title

    filter
    inc/Widget/ArchiveWidget.php line 155 · used in 2 places
    apply_filters( 'widget_title', $instance['title'] );
  • inc/App/Integration/WooCommerce/wc-gateways/wpp-mellat-gateway.php line 133 · used in 2 places
    apply_filters( 'woocommerce_gateway_icon', $icon, $this->id );
  • inc/App/Integration/WooCommerce/wc-gateways/wpp-mellat-gateway.php line 145 · used in 2 places
    do_action( "wpp_wc_{$this->id}_gateway_process_payment", $order, $refId );
  • inc/App/Integration/WooCommerce/wc-gateways/wpp-mellat-gateway.php line 190 · used in 2 places
    apply_filters( "wpp_wc_{$this->id}_gateway_request_payment", array( 'terminalId' => $this->terminal_id, 'userName' => $this->username, 'userPassword' => $this->password, 'orderId' => $order->get_id(), 'amount' => $this->get_amount( $order ), 'localDate' => gmdate( 'Ymd' ), 'localTime' => gmdate( 'His' ), 'additionalData' => $description, 'callBackUrl' => add_query_arg( array( 'wc-api' => $this->get_class(), 'order_id' => $order->get_id() ), get_site_url(... );
  • inc/App/Integration/WooCommerce/WooCommerceCitySelect.php line 88
    apply_filters( 'wc_city_select_cities', $cities );
  • inc/Admin/AdminSettings.php line 510
    apply_filters( "wp_parsidate_{$currentTab}_settings_display_reset_button", true );
  • inc/Admin/AdminPages.php line 170
    do_action( "wp_parsidate_{$currentTab}_tab_content" );
  • inc/Admin/AdminSettings.php line 479
    apply_filters( "wp_parsidate_{$currentTab}_tab_content_display_notice", false );
  • inc/Admin/AdminPages.php line 157
    do_action( "wp_parsidate_{$currentTab}_tab_header" );
  • inc/Admin/AdminPages.php line 166
    do_action( "wp_parsidate_{$currentTab}_tab_notice" );
  • inc/Admin/AdminSettings.php line 304
    apply_filters( "wp_parsidate_{$tab}_settings", [] );
  • inc/Admin/AdminPages.php line 76
    apply_filters( "wp_parsidate_{$tab}_tab_display_notice", true );
  • inc/App/Integration/WooCommerce.php line 1273
    apply_filters( "wp_parsidate_{$this->addonID}_settings_options", $settings );
  • inc/Admin/AdminConvert.php line 40
    apply_filters( "wp_parsidate_{self::tab}_settings_options", [] );
  • inc/Addons/Addons.php line 278
    apply_filters( 'wp_parsidate_addon_cats', array() );
  • inc/Addons/Addons.php line 93
    apply_filters( 'wp_parsidate_addons', array() );
  • inc/App/App.php line 25
    do_action( 'wp_parsidate_addons_load' );
  • inc/Addons/Addons.php line 225
    apply_filters( 'wp_parsidate_addons_page_cat_title', $addonCats[ $cat ], $cat );
  • inc/Admin/AdminPages.php line 63
    do_action( 'wp_parsidate_admin_init', self::getActiveTab() );
  • inc/Admin/AdminPages.php line 70
    do_action( 'wp_parsidate_admin_init_menu', self::getActiveTab() );
  • inc/Block/ArchiveBlock.php line 57
    do_action( 'wp_parsidate_archive_block_end', $title, $postType, $type, $displayCount, $isList, $blockId );
  • inc/Block/ArchiveBlock.php line 40
    do_action( 'wp_parsidate_archive_block_start', $title, $postType, $type, $displayCount, $isList, $blockId );
  • inc/Widget/ArchiveWidget.php line 177
    do_action( 'wp_parsidate_archive_widget_end', $title, $postType, $type, $postCount, $isList, $widgetID );
  • inc/Widget/ArchiveWidget.php line 161
    do_action( 'wp_parsidate_archive_widget_start', $title, $postType, $type, $postCount, $isList, $widgetID );
  • inc/App/Integration/Brizy.php line 194
    apply_filters( 'wp_parsidate_brizy_skip', false, $post );
  • inc/Block/CalendarBlock.php line 73
    do_action( 'wp_parsidate_calendar_block_end', $title, $postType, $theme, $blockId );
  • inc/Block/CalendarBlock.php line 70
    do_action( 'wp_parsidate_calendar_block_start', $title, $postType, $theme, $blockId );
  • inc/Widget/CalendarWidget.php line 158
    do_action( 'wp_parsidate_calendar_widget_end', $title, $postType, $theme, $widgetID );
  • inc/Widget/CalendarWidget.php line 155
    do_action( 'wp_parsidate_calendar_widget_start', $title, $postType, $theme, $widgetID );
  • inc/Admin/AdminPages.php line 172
    do_action( 'wp_parsidate_content', $currentTab );
  • inc/Admin/AdminSettings.php line 547
    apply_filters( 'wp_parsidate_display_section_description', false, $currentTab, $currentSection );
  • inc/Admin/AdminPages.php line 44
    apply_filters( 'wp_parsidate_display_tab_settings', true, $currentTab );
  • inc/App/Core/FixDates.php line 379
    apply_filters( 'wp_parsidate_dual_date_gregorian', $date, $format, $dateTime, $fallbackGregorianDate );
  • inc/App/Core/FixDates.php line 305
    apply_filters( 'wp_parsidate_dual_date_separator', ' - ', $format, $dateTime );
  • inc/App/Integration/Elementor.php line 168
    apply_filters( 'wp_parsidate_elementor_enqueue_front_assets', true );
  • inc/Admin/AdminPages.php line 140
    do_action( 'wp_parsidate_end_menus' );
  • inc/App/Convert/FixNumbers.php line 64
    apply_filters( 'wp_parsidate_fix_post_content_numbers', $converted, $content );
  • inc/Settings/Settings.php line 74
    apply_filters( 'wp_parsidate_get_setting', wp_unslash( $options[ $key ] ?? $default ), $key, $default, $options, $optionsName );
  • inc/Settings/Settings.php line 78
    apply_filters( 'wp_parsidate_get_settings', $options ?: $default, $optionsName );
  • inc/Admin/AdminPages.php line 159
    do_action( 'wp_parsidate_header', $currentTab );
  • inc/App/Tools/HookDeactivator.php line 33
    apply_filters( 'wp_parsidate_hook_deactivator_check_disable', false );
  • inc/App/Tools/HookDeactivator.php line 133
    apply_filters( 'wp_parsidate_hook_deactivator_list', $hooks );
  • inc/App/Tools/HookDeactivator.php line 116
    apply_filters( 'wp_parsidate_hook_deactivator_raw_list', $rawList );
  • inc/Helper/HTML.php line 197
    apply_filters( 'wp_parsidate_image_sizes_select_items', Assets::getImageSizes() );
  • inc/App/App.php line 27
    do_action( 'wp_parsidate_init' );
  • inc/Admin/AdminPages.php line 189
    apply_filters( 'wp_parsidate_menus', [] );
  • inc/Core/Names.php line 117
    apply_filters( 'wp_parsidate_name_of_gregorian_months', $names, $type, $short );
  • inc/Core/Names.php line 379
    apply_filters( 'wp_parsidate_name_of_gregorian_week_days', $names, $type, $short );
  • inc/Core/Names.php line 252
    apply_filters( 'wp_parsidate_name_of_months', $names, $type );
  • inc/Core/Names.php line 311
    apply_filters( 'wp_parsidate_name_of_week_days', $names, $type );
  • inc/Admin/AdminPages.php line 164
    do_action( 'wp_parsidate_notice', $currentTab );
  • inc/Admin/AdminSettings.php line 85
    apply_filters( 'wp_parsidate_save_settings_error_message', esc_html__( 'Error saving settings!', 'wp-parsidate' ), $tab );
  • inc/Admin/AdminSettings.php line 82
    do_action( 'wp_parsidate_save_settings_success', $tab, $currentSection, $options );
  • inc/Admin/AdminSettings.php line 80
    apply_filters( 'wp_parsidate_save_settings_success_message', esc_html__( 'Settings saved.', 'wp-parsidate' ), $tab );
  • inc/Admin/AdminSettings.php line 332
    do_action( 'wp_parsidate_section_content', $currentTab, $currentSection, $currentSettings );
  • inc/Admin/AdminSettings.php line 66
    apply_filters( 'wp_parsidate_setting_value_before_save', $value, $setting );
  • inc/Admin/AdminSettings.php line 312
    apply_filters( 'wp_parsidate_settings', [] );
  • inc/Admin/AdminSettings.php line 73
    apply_filters( 'wp_parsidate_settings_before_save', $options, $tab );
  • inc/Admin/AdminSettings.php line 459
    apply_filters( 'wp_parsidate_settings_header_image', $settings['header_image'] ?? '', $currentTab, $currentSection, $settings );
  • inc/Admin/AdminAssets.php line 52
    apply_filters( 'wp_parsidate_settings_page_refresh_url', null );
  • inc/Admin/AdminAssets.php line 50
    apply_filters( 'wp_parsidate_settings_page_refreshed_after', 0 );
  • inc/Admin/AdminSettings.php line 515
    apply_filters( 'wp_parsidate_settings_reset_button_title', esc_html__( 'Discard changes', 'wp-parsidate' ), $currentTab );
  • inc/Admin/AdminSettings.php line 500
    apply_filters( 'wp_parsidate_settings_submit_button_title', esc_html__( 'Save changes', 'wp-parsidate' ), $currentTab );
  • inc/Admin/AdminPages.php line 127
    do_action( 'wp_parsidate_start_menus' );
  • inc/Admin/AdminPages.php line 32
    do_action( 'wp_parsidate_submit_settings_form', $tab );
  • inc/Helper/Templates.php line 42
    apply_filters( 'wp_parsidate_template_path', $path, $template, $dir );
  • inc/App/Integration/WooCommerce.php line 283
    apply_filters( 'wp_parsidate_validate_postal_code_checksum', false );
  • inc/App/Integration/WooCommerce.php line 205
    apply_filters( 'wp_parsidate_wc_checkout_city_select_cities', $cities );
  • inc/Plugin/WpNotice.php line 34
    apply_filters( 'wp_parsidate_wp_admin_notice', [] );
  • inc/App/Integration/ACF/class-wpp-acf-datepicker-v5.php line 201
    apply_filters( 'wpp_acf_after_load_date_field', $field );
  • inc/App/Integration/ACF/class-wpp-acf-timepicker-v5.php line 152
    apply_filters( 'wpp_acf_after_load_time', $value );
  • inc/App/Integration/ACF/class-wpp-acf-timepicker-v5.php line 218
    apply_filters( 'wpp_acf_after_load_time_field', $field );
  • inc/App/Integration/ACF/class-wpp-acf-datepicker-v5.php line 169
    apply_filters( 'wpp_acf_before_jalali_date_render', $value );
  • inc/App/Integration/ACF/class-wpp-acf-datepicker-v5.php line 214
    apply_filters( 'wpp_acf_before_save_date_field', $field );
  • inc/App/Integration/ACF/class-wpp-acf-timepicker-v5.php line 231
    apply_filters( 'wpp_acf_before_save_time_field', $field );
  • inc/App/Integration/ACF/class-wpp-acf-timepicker-v5.php line 186
    apply_filters( 'wpp_acf_before_time_render', $value );
  • inc/App/Integration/ACF/class-wpp-acf-timepicker-v5.php line 167
    apply_filters( 'wpp_acf_before_update_time', $value );
  • inc/App/Integration/ACF/class-wpp-acf-datepicker-v5.php line 188
    apply_filters( 'wpp_acf_validate_date_value', $valid, $value, $field, $input );
  • inc/App/Integration/ACF/class-wpp-acf-timepicker-v5.php line 205
    apply_filters( 'wpp_acf_validate_time_value', $valid, $value, $field, $input );
  • inc/App/Integration/WooCommerce.php line 378
    apply_filters( 'wpp_arabic_persian_characters_list', $characters );
  • inc/App/Integration/Elementor.php line 152
    apply_filters( 'wpp_elementor_css', $wpp_elementor_css );
  • inc/App/Integration/WooCommerce/WcGateways.php line 175
    apply_filters( 'wpp_get_selected_wc_payment_gateways', $activeGateways );
  • inc/App/Integration/RankMath.php line 127
    apply_filters( 'wpp_rank_math_product_price', ( $entity['offers']['price'] * 10 ), $entity );
  • inc/App/Integration/RankMath.php line 82
    apply_filters( 'wpp_rank_math_product_variant_price', ( $variant['offers']['price'] * 10 ), $variant );
  • inc/App/Integration/WooCommerce.php line 339
    apply_filters( 'wpp_woocommerce_checkout_modified_persian_fields', $data );

Generated from Parsi Date'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: