WholesaleX 3.2.0 has 80 actions and 315 filters, read directly from its source code on Nov 18, 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 WholesaleX fires an action
add_action( 'wholesalex_dr_single_product_min_max_rule_data', function( $product, $min_max_data ) {
// Your code runs here.
}, 10, 2 );
// Change a value WholesaleX is about to use
add_filter( 'wholesalex_dynamic_rule_provider_result', function( $value, $_type, $_rule, $existing, $canonical ) {
// Change $value here.
return $value;
}, 10, 5 );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.
Changes by version
3.1.9 β 3.2.0 Β· Nov 18, 2026 Β· 19 added, 0 removed
Added
- filter
wholesalex_mcp_registration_field_to_storage - filter
wholesalex_mcp_registration_field_properties - filter
wholesalex_mcp_role_to_storage - filter
wholesalex_mcp_role_output - filter
wholesalex_mcp_role_input_properties - filter
wholesalex_mcp_ability_definitions - filter
wholesalex_mcp_expose_on_default_server - action
wholesalex_render_admin_app - filter
wholesalex_mcp_dynamic_rule_types - filter
wholesalex_mcp_dynamic_rule_condition_fields - filter
wholesalex_mcp_oauth_trusted_hosts - filter
wholesalex_mcp_oauth_register_limit - filter
wholesalex_mcp_oauth_register_ip - filter
wholesalex_mcp_pricing_rule_types - filter
wholesalex_mcp_pricing_rule_product_scopes - filter
wholesalex_mcp_pricing_rule_condition_fields - filter
wholesalex_mcp_server_tools - filter
wholesalex_mcp_settings_sections - filter
wholesalex_mcp_read_only_settings
All hooks
-
/** * Providers return canonical owned fragments, never a raw submitted object. * The optional fifth argument supplies the canonical generic record. */ apply_filters( 'wholesalex_dynamic_rule_provider_result', null, $_type, $_rule, $existing, $canonical ); -
/** * Filter wholesalex roles importer parsed data. */ apply_filters( 'wholesalex_dynamic_rule_importer_parsed_data', $this->parsed_data, $this ); -
/** * Filter wholesalex roles importer parsed data. */ apply_filters( 'wholesalex_role_importer_parsed_data', $this->parsed_data, $this ); -
/** * Filter the effective pricing role without changing the assigned account * role. */ apply_filters( 'wholesalex_user_role', $role, (int) $user_id ); -
/** * Filter a category's role-based discounts. */ apply_filters( 'wholesalex_category_discounts', array(), $id ); -
/** * Filter the runtime payload of a dynamic rule. */ apply_filters( 'wholesalex_dr_rule_payload', $frule, $rule_type, $discount, $this ); -
/** * Fires after the single product page's order-quantity rule data is prepared. */ do_action( 'wholesalex_dr_single_product_min_max_rule_data', $product, $min_max_data ); -
/** * Fires after a dynamic rule is saved. */ do_action( 'wholesalex_dynamic_rule_data_after_save', $data ); -
/** * Filters a dynamic rule before it is saved. */ apply_filters( 'wholesalex_dynamic_rule_data_before_save', $data ); -
/** * Batch size for the wholesalex dynamic_rule import process. */ apply_filters( 'wholesalex_dynamic_rule_import_batch_size', 30 ); -
/** * Allow third-party plugins to filter the data in a single row of the exported * CSV file. */ apply_filters( 'wholesalex_export_row_data', $row, $rule, $this ); -
/** * Filters the WholesaleX AI tool definitions. */ apply_filters( 'wholesalex_mcp_ability_definitions', $definitions ); -
/** * Filters the cart condition fields offered by the dynamic rule AI tools. */ apply_filters( 'wholesalex_mcp_dynamic_rule_condition_fields', $fields ); -
/** * Filters the dynamic rule types offered by the AI tools. */ apply_filters( 'wholesalex_mcp_dynamic_rule_types', $types ); -
/** * Filters whether WholesaleX tools are also listed on the MCP Adapter's shared * default server. */ apply_filters( 'wholesalex_mcp_expose_on_default_server', false, $name ); -
/** * Filters the address the registration limit counts against. */ apply_filters( 'wholesalex_mcp_oauth_register_ip', $ip ); -
/** * Filters how many apps one address may register per hour. Return 0 to turn * the limit off. */ apply_filters( 'wholesalex_mcp_oauth_register_limit', self::REGISTER_LIMIT ); -
/** * Filters the app hosts that may receive WholesaleX AI tools sign-ins. */ apply_filters( 'wholesalex_mcp_oauth_trusted_hosts', array( 'claude.ai', 'claude.com', 'chatgpt.com', 'chat.openai.com', 'vscode.dev' ) ); -
/** * Filters the cart condition fields offered by the pricing rule AI tools. */ apply_filters( 'wholesalex_mcp_pricing_rule_condition_fields', $fields ); -
/** * Filters the product scopes offered by the pricing rule AI tools. */ apply_filters( 'wholesalex_mcp_pricing_rule_product_scopes', $scopes ); -
/** * Filters the wholesale pricing rule types offered by the AI tools. */ apply_filters( 'wholesalex_mcp_pricing_rule_types', $types ); -
/** * Filters the settings the WholesaleX AI tools may read but not change. */ apply_filters( 'wholesalex_mcp_read_only_settings', array() ); -
/** * Filters the field properties accepted by the registration form AI tools. */ apply_filters( 'wholesalex_mcp_registration_field_properties', $properties, $for_add ); -
/** * Filters the stored field properties built from AI tool input. */ apply_filters( 'wholesalex_mcp_registration_field_to_storage', $changes, $input, $field ); -
/** * Filters the role properties accepted by the WholesaleX AI tools. */ apply_filters( 'wholesalex_mcp_role_input_properties', $properties, $for_create ); -
/** * Filters the role data returned by the WholesaleX AI tools. */ apply_filters( 'wholesalex_mcp_role_output', $output, $role, $id ); -
/** * Filters the stored role fields built from AI tool input. */ apply_filters( 'wholesalex_mcp_role_to_storage', $changes, $input, $existing, $id ); -
/** * Filters the abilities served as tools by the WholesaleX MCP server. */ apply_filters( 'wholesalex_mcp_server_tools', Abilities::registered_names() ); -
/** * Filters the settings sections offered by the WholesaleX AI tools. */ apply_filters( 'wholesalex_mcp_settings_sections', $sections ); -
/** * Fires while listing the pricing sources that apply to a product. */ do_action( 'wholesalex_product_rule_on_sources', $product_id, $product, $this ); -
/** * Register extensions after shared classes load and before runtime objects are * created. */ do_action( 'wholesalex_register_extensions' ); -
/** * Register storefront tier pricing table hooks. */ do_action( 'wholesalex_register_tier_table_hooks', $data, $this ); -
/** * Supply trusted scopes for forms placed by PHP templates or other builders. * Resolve these from saved configuration, never request parameters. */ apply_filters( 'wholesalex_registration_form_scopes', $scopes, $post_id ); -
/** * Allow site owners to drop third-party `woocommerce_registration_errors` * validators that conflict with the WholesaleX registration form. */ apply_filters( 'wholesalex_remove_registration_error_filters', array() ); -
/** * Allow third-party plugins to filter the data in a single row of the exported * CSV file. */ apply_filters( 'wholesalex_role_export_row_data', $row, $role, $this ); -
/** * Batch size for the wholesalex role import process. */ apply_filters( 'wholesalex_role_import_batch_size', 30 ); -
/** * Supply an actual provider-owned validator/result for role operations. */ apply_filters( 'wholesalex_role_provider_result', null, $incoming, $stored, $operation, $next, $changes ); -
/** * Filter a product's role-based prices. */ apply_filters( 'wholesalex_single_product_discount', $data, $id ); -
/** * Fires after a wholesale-pricing rule is deleted. */ do_action( 'wholesalex_wholesale_pricing_rule_deleted', $id ); -
/** * Fires after a wholesale-pricing rule is saved. */ do_action( 'wholesalex_wholesale_pricing_rule_saved', $id, $data ); -
/** * Filter order item quantity. */ apply_filters( 'woocommerce_order_item_quantity', $item->get_quantity(), $order, $item ); -
woocommerce_product_allow_backorder_use_radio
filter Used by 2 plugins β Copy link Customise this hook/** * Allow 3rd parties to control whether "Allow backorder?" option will use * radio buttons or a select. */ apply_filters( 'woocommerce_product_allow_backorder_use_radio', true ); -
/** * Fires when stock reduced to a specific line item */ do_action( 'woocommerce_reduce_order_item_stock', $item, $change, $order ); -
/** * Fire an action for this direct update so it can be detected by other code. */ do_action( 'woocommerce_updated_product_stock', $product_id_with_stock ); -
apply_filters( 'wholesalex_capability_access', 'manage_options' ); -
apply_filters( 'wholesalex_set_current_user', get_current_user_id() ); -
apply_filters( 'wholesalex_ignore_dynamic_price', false, $product, 'regular_price' ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'wholesalex_ignore_wholesale_pricing', false, $product, 'price' ); -
apply_filters( 'wholesalex_recaptcha_minimum_score_allow', 0.5 ); -
apply_filters( 'wholesalex_available_shipping_methods', $free_shipping->rates, $package_rates, $package, $data ); -
do_action( 'wholesalex_before_registration_form_render' ); -
apply_filters( 'wholesalex_cart_discount_title', isset( $rule['rule']['_discount_name'] ) ? $rule['rule']['_discount_name'] : __( 'Cart Discounts', 'wholesalex' ) ); -
apply_filters( 'wholesalex_condition_field_aliases', array( 'cart_total' => 'cart_total_value', 'item_count' => 'cart_total_qty', ) ); -
apply_filters( 'wholesalex_default_b2b_role_id', 'wholesalex_b2b_wholesale' ); -
apply_filters( 'wholesalex_dynamic_rules_min_quantity_error_message', Dynamic_Rules_Condition_Engine::restore_smart_tags( array( '{minimum_qty}' => $min, '{product_title}' => $variation_id ? $variation->get_name() : $product->get_name(), ), wholesalex()->get_setting( 'only_minimum_order_qty_promo_text', __( 'You have to add minimun {minimum_qty} quantity', 'wholesalex' ) ) ) ); -
apply_filters( 'wholesalex_dynamic_rules_product_author', 0 ); -
apply_filters( 'wholesalex_is_admin_dashboard', is_admin() ); -
apply_filters( 'wholesalex_legacy_bxgy_badge_markup', '', isset( $this->valid_dynamic_rules['buy_x_get_y'] ) ? $this->valid_dynamic_rules['buy_x_get_y'] : array(), false, $this ); -
wholesalex_registration_form_user_status_option
filter Used by 2 plugins β Copy link Customise this hookapply_filters( 'wholesalex_registration_form_user_status_option', 'admin_approve', $user_id, $registration_role ); -
apply_filters( 'wholesalex_wholesale_pricing_price', false === $price_data ? $price : $price_data['price'], $product, $price ); -
apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
do_action( "wholesalex_{$addon_name}_after_status_update", $addon_value ); -
do_action( "wholesalex_{$addon_name}_before_status_update", $addon_value ); -
apply_filters( "wholesalex_{$addon_name}_error", '', $addon_value ); -
apply_filters( "wholesalex_{$this->export_type}_exporter_default_columns", array( 'id' => __( 'ID', 'wholesalex' ), '_rule_status' => __( 'Status', 'wholesalex' ), '_rule_title' => __( 'Title', 'wholesalex' ), '_rule_type' => __( 'Type', 'wholesalex' ), '_rule_for' => __( 'Applicable For', 'wholesalex' ), 'specific_users' => __( 'Applicable Users', 'wholesalex' ), 'specific_roles' => __( 'Applicable Roles', 'wholesalex' ), '_product_filter' => __( 'Applicable On', 'wh... ); -
apply_filters( 'wholesalex_addons_config', array() ); -
apply_filters( 'wholesalex_condition_fields', array( 'cart_total_qty', 'cart_total_value', 'cart_total_weight' ) ); -
apply_filters( "wholesalex_default_option_{$option}", $value, $option ); -
apply_filters( 'wholesalex_dr_cart_discount_on_tax', false ); -
apply_filters( 'wholesalex_dynamic_rules_condition_check', false, $tier, $condition_for, $operator, $condition_value ); -
apply_filters( 'wholesalex_dynamic_rules_exclude_roles', array( 'wholesalex_guest', 'wholesalex_b2c_users' ) ); -
apply_filters( 'wholesalex_dynamic_rules_exclude_users', array() ); -
apply_filters( 'wholesalex_dynamic_rules_product_filter_options', array( '' => __( 'Choose Filter...', 'wholesalex' ), 'all_products' => __( 'All Products', 'wholesalex' ), 'products_in_list' => __( 'Product in list', 'wholesalex' ), 'products_not_in_list' => __( 'Product not in list', 'wholesalex' ), 'cat_in_list' => __( 'Categories in list', 'wholesalex' ), 'cat_not_in_list' => __( 'Categories not in list', 'wholesalex' ), 'attribute_in_list' => __( 'Variat... ); -
apply_filters( 'wholesalex_dynamic_rules_rule_for_options', array( '' => __( 'Select Users/Role...', 'wholesalex' ), 'all' => __( 'All (Registered and Guest Users)', 'wholesalex' ), 'all_users' => __( 'All Registered Users', 'wholesalex' ), 'all_roles' => __( 'All B2B Roles', 'wholesalex' ), 'specific_users' => __( 'Specific Users', 'wholesalex' ), 'specific_roles' => __( 'Specific Roles', 'wholesalex' ), ), 'rule_for' ); -
apply_filters( 'wholesalex_dynamic_rules_rule_type_options', array( '' => __( 'Choose Rule...', 'wholesalex' ), 'product_discount' => __( 'Product Discount', 'wholesalex' ), 'cart_discount' => __( 'Cart Discount ', 'wholesalex' ), 'payment_discount' => __( 'Payment Method Discount', 'wholesalex' ), 'payment_order_qty' => __( 'Required Quantity for Payment Method', 'wholesalex' ), 'buy_x_get_one' => __( 'BOGO Discounts (Buy X Get One Free)', 'wholesalex' ... ); -
apply_filters( 'wholesalex_email_new_user_registered_smart_tags', wholesalex()->smart_tag_name( '{date}', '{admin_name}', '{site_name}' ) ); -
apply_filters( 'wholesalex_exclude_auto_role_migration_field', array( 'wholesalex_guest', 'wholesalex_b2c_users' ) ); -
apply_filters( 'wholesalex_extra_charge_is_taxable', true ); -
apply_filters( 'wholesalex_get_all_dynamic_rules', array_values( $__dynamic_rules ) ); -
apply_filters( 'wholesalex_get_price_html', $price_html, $product ); -
apply_filters( 'wholesalex_global_registration_form_select_roles_title', __( 'Select Registration Roles', 'wholesalex' ) ); -
apply_filters( 'wholesalex_logo_url', WHOLESALEX_URL . 'assets/icons/wholesalex-logo.svg' ); -
apply_filters( 'wholesalex_overview_column_heading', $data, $key ); -
apply_filters( 'wholesalex_overview_localize_integration_data', apply_filters( 'wholesalex_overview_localize_integration_data', array_merge( self::get_dynamic_rules_localize_data( $dependency ), self::get_wholesale_pricing_integration_data() ) ) ); -
apply_filters( 'wholesalex_payment_gateway_default_discount_name', isset( $rule['rule']['_discount_name'] ) ? $rule['rule']['_discount_name'] : __( 'Payment Discount!', 'wholesalex' ) ); -
apply_filters( 'wholesalex_payment_gateway_discount_is_taxable', false ); -
apply_filters( 'wholesalex_pricing_product_filters', array( 'all_products', 'specific_products', 'specific_variations', 'specific_categories' ) ); -
apply_filters( 'wholesalex_product_discount_label', $label, $discount ); -
apply_filters( 'wholesalex_resolved_page_discounts', array(), $type, $product_id, $__eligible_for_discounts, $__role ); -
do_action( 'wholesalex_script_data_ready', 'wholesalex', 'admin' ); -
do_action( 'wholesalex_set_status_active', $user_id, '' ); -
do_action( 'wholesalex_user_email_confirmation', $user_id, $confirmation_code ); -
do_action( 'wholesalex_user_profile_update_notify', $user->ID, $user_extra_data_upsate ); -
apply_filters( 'wholesalex_vendor_wholesale_pricing_rule_types', array( 'wholesale_pricing' ) ); -
apply_filters( 'wholesalex_wholesale_pricing_cart_quantity', $quantity, $product, $rule, null ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) ); -
apply_filters( 'wpml_object_id', absint( $object_id ), $object_type, false, $language_code ); -
apply_filters( 'wsx_show_upsell', apply_filters( 'wholesalex_show_upgrade_menu', true ) ); -
apply_filters( 'dynamic_rules_restapi_permission_callback', current_user_can( $capability ) ); -
apply_filters( 'is_dynamic_rules_work_in_backend', true ); -
apply_filters( 'wc_aelia_cs_convert', $amount, $from_currency, $to_currency ); -
apply_filters( 'wc_aelia_cs_enabled_currencies', array( self::get_shop_base_currency() ) ); -
apply_filters( 'wc_aelia_cs_product_base_currency', $default_currency, $product_id ); -
do_action( "wholesalex_{$type}_form" ); -
do_action( 'wholesalex_after_core_loaded' ); -
do_action( 'wholesalex_after_frontend_enqueue_scripts' ); -
apply_filters( 'wholesalex_allow_authenticated_site_join', false, $user, $blog_id ); -
apply_filters( 'wholesalex_apply_parent_rule_to_variations', false ); -
apply_filters( 'wholesalex_backend_localize_data', array_merge( $localize_data, Xpo::get_wow_products_details() ) ); -
do_action( 'wholesalex_before_add_to_cart_form', $product ); -
do_action( 'wholesalex_before_create_registered_customer' ); -
do_action( 'wholesalex_before_dynamic_rules_loaded', $user_id ); -
wholesalex_before_new_user_registered_notification_email_trigger
action Copy link Customise this hookdo_action( 'wholesalex_before_new_user_registered_notification_email_trigger', $user_id ); -
do_action( 'wholesalex_before_process_user_login' ); -
do_action( 'wholesalex_before_process_user_registration' ); -
do_action( 'wholesalex_before_role_update', $user_id, $new_role_id, $prev_role_id ); -
do_action( 'wholesalex_before_save_profile_settings', $user_id, $__settings ); -
apply_filters( 'wholesalex_can_show_promotions', true ); -
apply_filters( 'wholesalex_cart_count', $__quantity, $product_id ); -
apply_filters( 'wholesalex_cart_discount_is_taxable', false, $fee ); -
apply_filters( 'wholesalex_category_cart_count', $cat_count, $cat_id ); -
apply_filters( 'wholesalex_category_discount_action', array( 'sale_price' => $sale_price, 'product' => $product, ) ); -
apply_filters( 'wholesalex_category_fields', array( '_category_settings' => array( 'label' => sprintf( __( '%s Settings', 'wholesalex' ), wholesalex()->get_plugin_name() ), 'attr' => array( '_settings_category_visibility' => array( 'label' => __( 'Visibility', 'wholesalex' ), 'type' => 'visibility_section', 'attr' => array( '_hide_for_b2c' => array( 'type' => 'slider', 'label' => __( 'Hide product for B2C', 'wholesalex' ), 'help' => '', '... ); -
apply_filters( 'wholesalex_category_response', array( 'default' => $this->get_category_fields(), 'visibility' => $__visibility_settings, ), $term_id ); -
apply_filters( 'wholesalex_collapse_multilingual_select_options', true, $items, $object_type, $subtype ); -
apply_filters( 'wholesalex_condition_handlers', array() ); -
apply_filters( 'wholesalex_csv_dynamic_rule_import_mapped_columns', $headers, $raw_headers ); -
apply_filters( 'wholesalex_csv_dynamic_rule_import_mapping_default_columns', array( __( 'ID', 'wholesalex' ) => 'id', __( 'Status', 'wholesalex' ) => '_rule_status', __( 'Title', 'wholesalex' ) => '_rule_title', __( 'Type', 'wholesalex' ) => '_rule_type', __( 'Applicable For', 'wholesalex' ) => '_rule_for', __( 'Applicable Users', 'wholesalex' ) => 'specific_users', __( 'Applicable Roles', 'wholesalex' ) => 'specific_roles', __( 'Applicable On', 'wholesalex' ) => '_prod... ); -
apply_filters( 'wholesalex_csv_dynamic_rule_import_mapping_options', $options, $item ); -
apply_filters( 'wholesalex_csv_dynamic_rule_import_valid_filetypes', array( 'csv' => 'text/csv', 'txt' => 'text/plain', ) ); -
apply_filters( 'wholesalex_csv_role_import_mapped_columns', $headers, $raw_headers ); -
apply_filters( 'wholesalex_csv_role_import_mapping_default_columns', array( __( 'ID', 'wholesalex' ) => 'id', __( 'Role Title', 'wholesalex' ) => '_role_title', __( 'Shipping Methods', 'wholesalex' ) => '_shipping_methods', __( 'Payment Methods', 'wholesalex' ) => '_payment_methods', __( 'Disable Coupon', 'wholesalex' ) => '_disable_coupon', __( 'Auto Role Migration', 'wholesalex' ) => '_auto_role_migration', __( 'Role Migration Threshold Value', 'wholesalex' ) ... ); -
apply_filters( 'wholesalex_csv_role_import_mapping_options', $options, $item ); -
apply_filters( 'wholesalex_csv_role_import_valid_filetypes', array( 'csv' => 'text/csv', 'txt' => 'text/plain', ) ); -
apply_filters( 'wholesalex_customer_import_export_log', $log, $is_update ); -
apply_filters( 'wholesalex_dashboard_new_messages_count', 0 ); -
apply_filters( 'wholesalex_dashboard_pending_registrations_columns', $columns ); -
apply_filters( 'wholesalex_dashboard_recent_orders_columns', $columns ); -
apply_filters( 'wholesalex_dashboard_top_customer_columns', $columns ); -
apply_filters( 'wholesalex_dashboard_top_customer_data', $__temp, $__id ); -
do_action( 'wholesalex_delete_user', $user_id ); -
do_action( 'wholesalex_dr_after_valid_rules_dispatch', $this->valid_dynamic_rules, $discounts_releated_data, $min_max_data, $cart_related_data ); -
apply_filters( 'wholesalex_dr_buy_x_get_one_free_quantity', $free_quantity ); -
apply_filters( 'wholesalex_dr_cart_fees', $cart_fees, $rules, WC()->session->get( 'chosen_payment_method' ) ); -
apply_filters( 'wholesalex_dr_discounts', $discounts_releated_data ); -
apply_filters( 'wholesalex_dr_min_max_add_to_cart_validation', $status, $data, $product_id, $variation_id, $quantity, $product, $variation ); -
do_action( 'wholesalex_dr_min_max_check_cart_items', true, $data, $cart_item, $product_title ); -
apply_filters( 'wholesalex_dr_min_max_qty_input_args', $args, $data, $product ); -
apply_filters( 'wholesalex_dr_min_max_rules', $min_max_data, $this->valid_dynamic_rules ); -
apply_filters( 'wholesalex_dr_min_max_update_cart_validation', $status, $data, $product_id, $variation_id, $quantity, $product ); -
apply_filters( 'wholesalex_dr_payment_discount_on_tax', false ); -
apply_filters( 'wholesalex_dynamic_rule_cart_quantity_html', null, $html, $cart_item ); -
apply_filters( 'wholesalex_dynamic_rule_csv_allowed_columns', array( 'id', '_rule_status', '_rule_title', '_rule_type', '_rule_for', 'specific_users', 'specific_roles', '_product_filter', 'products_in_list', 'products_not_in_list', 'cat_in_list', 'cat_not_in_list', 'attribute_in_list', 'attribute_not_in_list', 'product_discount', 'cart_discount', 'payment_discount', 'payment_order_qty', 'buy_x_get_one', 'shipping_rule', 'min_order_qty', 'max_order_qty', '... ); -
apply_filters( 'wholesalex_dynamic_rule_csv_importer_args', $args, $importer_class ); -
apply_filters( 'wholesalex_dynamic_rule_csv_importer_class', '\WHOLESALEX\WHOLESALEX_Dynamic_Rule_CSV_Importer' ); -
apply_filters( 'wholesalex_dynamic_rule_exporter_get_role_name', false ); -
do_action( 'wholesalex_dynamic_rule_get_price_html' ); -
apply_filters( 'wholesalex_dynamic_rule_import_authority', $existing, $_id ); -
do_action( 'wholesalex_dynamic_rule_import_before_import', $parsed_data ); -
do_action( 'wholesalex_dynamic_rule_import_before_process_item', $data ); -
do_action( 'wholesalex_dynamic_rule_import_inserted_rule', $rule, $data ); -
apply_filters( 'wholesalex_dynamic_rule_import_pre_insert_rule_data', $rule, $data ); -
apply_filters( 'wholesalex_dynamic_rule_import_process_item_data', $data ); -
do_action( 'wholesalex_dynamic_rule_importer_before_set_parsed_data', $row, $mapped_keys ); -
apply_filters( 'wholesalex_dynamic_rule_importer_default_time_limit', 20 ); -
apply_filters( 'wholesalex_dynamic_rule_importer_formatting_callbacks', $callbacks, $this ); -
apply_filters( 'wholesalex_dynamic_rule_importer_memory_exceeded', $return ); -
apply_filters( 'wholesalex_dynamic_rule_importer_time_exceeded', $return ); -
apply_filters( 'wholesalex_dynamic_rule_price_result', null, $product, $data, array( 'base_price' => $base_price, 'sale_price' => $sale_price, 'applied_discount_src' => $applied_discount_src, 'priority' => $priority, ) ); -
apply_filters( 'wholesalex_dynamic_rule_resolved_data', array(), $product_id ); -
do_action( 'wholesalex_dynamic_rule_write_finished', $_id ); -
apply_filters( 'wholesalex_dynamic_rules_attribute_in_list_placeholder', __( 'Choose Product Variations to apply discounts', 'wholesalex' ) ); -
apply_filters( 'wholesalex_dynamic_rules_attribute_not_in_list_placeholder', __( 'Choose Product Variations that wont apply discounts', 'wholesalex' ) ); -
apply_filters( 'wholesalex_dynamic_rules_bogo_discount_text', $cart_item['data']->get_title() . __( '(BOGO Discounts)', 'wholesalex' ) ); -
apply_filters( 'wholesalex_dynamic_rules_cat_in_list_placeholder', __( 'Choose Categories to apply discounts', 'wholesalex' ) ); -
apply_filters( 'wholesalex_dynamic_rules_cat_not_in_list_placeholder', __( 'Choose Categories that wont apply discounts', 'wholesalex' ) ); -
apply_filters( 'wholesalex_dynamic_rules_condition_options', array( '' => __( 'Choose Conditions...', 'wholesalex' ), 'cart_total_qty' => __( 'Cart - Total Quantity', 'wholesalex' ), 'cart_total_value' => __( 'Cart - Total Value', 'wholesalex' ), 'cart_total_weight' => __( 'Cart - Total Weight', 'wholesalex' ), ), 'conditions' ); -
apply_filters( 'wholesalex_dynamic_rules_field', array( 'create_n_save_btn' => array( 'type' => 'buttons', 'attr' => array( 'create' => array( 'type' => 'button', 'label' => __( 'Create Dynamic Rule', 'wholesalex' ), ), ), ), '_new_rule' => array( 'label' => __( 'New Dynamic Rule', 'wholesalex' ), 'type' => 'rule', 'attr' => array( '_rule_title_n_status_section' => array( 'label' => '', 'type' => 'title_n_status', '_id' => 1, 'attr' => array(... ); -
apply_filters( 'wholesalex_dynamic_rules_product_in_list_placeholder', __( 'Choose Products to apply discounts', 'wholesalex' ) ); -
apply_filters( 'wholesalex_dynamic_rules_product_not_in_list_placeholder', __( 'Choose Products that wont apply discounts', 'wholesalex' ) ); -
apply_filters( 'wholesalex_dynamic_rules_rest_action', array(), $post ); -
do_action( 'wholesalex_dynamic_rules_updated', $_id ); -
apply_filters( 'wholesalex_email_confirmation_link_ttl', 2 * DAY_IN_SECONDS ); -
apply_filters( 'wholesalex_email_new_user_approval_required_smart_tags', wholesalex()->smart_tag_name( '{date}', '{admin_name}', '{site_name}' ) ); -
apply_filters( 'wholesalex_email_new_user_auto_approved_smart_tags', wholesalex()->smart_tag_name( '{date}', '{admin_name}', '{site_name}' ) ); -
apply_filters( 'wholesalex_email_registration_approved_smart_tags', wholesalex()->smart_tag_name( '{date}', '{admin_name}', '{site_name}' ) ); -
apply_filters( 'wholesalex_email_registration_decline_smart_tags', wholesalex()->smart_tag_name( '{date}', '{admin_name}', '{site_name}' ) ); -
apply_filters( 'wholesalex_email_templates', array( 'wholesalex_new_user_approval_required' => array( 'enabled' => 'yes', 'subject' => __( 'A New user registered and awaiting your approval.', 'wholesalex' ), 'heading' => __( 'A New user registered and awaiting your approval.', 'wholesalex' ), 'additional_content' => __( 'We look forward to seeing you soon.', 'wholesalex' ), 'email_type' => 'html', 'title' => sprintf( __( '%s: New User App... ); -
apply_filters( 'wholesalex_email_verification_smart_tags', wholesalex()->smart_tag_name( '{date}', '{admin_name}', '{site_name}' ) ); -
apply_filters( 'wholesalex_email_verified_smart_tags', wholesalex()->smart_tag_name( '{date}', '{admin_name}', '{site_name}' ) ); -
apply_filters( 'wholesalex_enable_guest', true ); -
apply_filters( 'wholesalex_exclude_regi_form_field', array( 'wholesalex_guest' ) ); -
apply_filters( "wholesalex_export_{$this->export_type}_column_{$column_id}", '', $rule, $column_id ); -
apply_filters( 'wholesalex_extension_layouts', is_array( $options ) ? $options : array() ); -
apply_filters( 'wholesalex_extension_options', is_array( $options ) ? $options : array() ); -
apply_filters( 'wholesalex_force_redirect_guest_user_url', wholesalex()->get_setting( '_settings_private_store_redirect_url', get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ) ); -
apply_filters( 'wholesalex_form_builder_default_text_map', array( 'Please select' => __( 'Please select', 'wholesalex' ), 'Select Role' => __( 'Select Role', 'wholesalex' ), 'Select Roles' => __( 'Select Roles', 'wholesalex' ), 'Select Registration Roles' => __( 'Select Registration Roles', 'wholesalex' ), 'Select Option' => __( 'Select Option', 'wholesalex' ), 'Username' => __( 'Username', 'wholesalex' ), 'Username or Email' => __( 'Username or Email'... ); -
apply_filters( 'wholesalex_form_builder_script_data', array( 'is_woo_username' => $is_woo_username, 'login_form_data' => wp_json_encode( $default_form_data['loginFields'] ), 'form_data' => wp_json_encode( $form_regi_data ), 'roles' => wholesalex()->get_roles( 'store_mode_roles_option' ), 'privacy_policy_text' => wc_get_privacy_policy_text( 'registration' ), 'password_condition_options' => $password_condition_options, ) ); -
apply_filters( 'wholesalex_form_content_requires_style', false, $post->post_content ); -
apply_filters( 'wholesalex_free_shipping_title', sprintf( __( '%s Free Shipping', 'wholesalex' ), wholesalex()->get_plugin_name() ) ); -
apply_filters( 'wholesalex_frontend_localize_data', array( 'url' => WHOLESALEX_URL, 'nonce' => wp_create_nonce( 'wholesalex-registration' ), 'ajax' => admin_url( 'admin-ajax.php' ), 'recaptcha_status' => wholesalex()->get_setting( 'wsx_addon_recaptcha' ), 'ver' => WHOLESALEX_VER, 'settings' => wholesalex()->get_setting(), 'logo_url' => apply_filters( 'wholesalex_logo_url', WHOLESALEX_URL . 'assets/icons/wholesalex-logo.svg' ), 'plugin_name' => w... ); -
apply_filters( 'wholesalex_get_cart_total_with_tax', ( $__is_enable_tax ? true : false ) ); -
apply_filters( 'wholesalex_get_user_settings_data', $__user_settings, $user_id ); -
apply_filters( 'wholesalex_get_users_query', array( 'fields' => array( 'ID', 'user_login' ), ) ); -
apply_filters( 'wholesalex_hide_all_products_for_b2c', $__hide_for_b2c_global ); -
apply_filters( 'wholesalex_hide_all_products_for_guest', $__hide_for_guest_global ); -
do_action( 'wholesalex_import_userdata', $user->ID, $data, $mapped_column, $is_update ); -
apply_filters( 'wholesalex_initial_roles', array( 'wholesalex_b2c_users' => array( 'id' => 'wholesalex_b2c_users', '_role_title' => __( 'B2C Users', 'wholesalex' ), 'removeable' => false, ), 'wholesalex_guest' => array( 'id' => 'wholesalex_guest', '_role_title' => __( 'Guest Users', 'wholesalex' ), 'removeable' => false, ), 'wholesalex_b2b_wholesale' => array( 'id' => 'wholesalex_b2b_wholesale', '_role_title' => __( 'Wholesale User', 'w... ); -
apply_filters( 'wholesalex_is_plugin_page', $status, $page ); -
apply_filters( 'wholesalex_legacy_attribute_options', array(), $search, $limit, $this ); -
apply_filters( 'wholesalex_legacy_brand_options', array(), $search, $limit, $this ); -
do_action( 'wholesalex_legacy_bxgy_badge_css', $this->valid_dynamic_rules, $this ); -
apply_filters( 'wholesalex_legacy_csv_field_exported', '', 'buy_x_get_y', $rule ); -
apply_filters( 'wholesalex_legacy_csv_field_parsed', array(), 'buy_x_get_y', $value, $this ); -
apply_filters( 'wholesalex_legacy_product_attribute_ids', array(), $product_id ); -
apply_filters( 'wholesalex_legacy_sku_options', array(), $search, $limit, $this ); -
apply_filters( 'wholesalex_no_access_redirection_url', get_permalink( wc_get_page_id( 'myaccount' ) ) ); -
apply_filters( "wholesalex_option_{$option}", $value, $option ); -
apply_filters( 'wholesalex_order_meta_b2b_value', $__custom_meta_value, $order, $role_title ); -
apply_filters( 'wholesalex_order_meta_b2c_value', sprintf( __( '%s B2C', 'wholesalex' ), wholesalex()->get_plugin_name() ) ); -
apply_filters( 'wholesalex_order_meta_guest_value', sprintf( __( '%s Guest', 'wholesalex' ), wholesalex()->get_plugin_name() ) ); -
apply_filters( 'wholesalex_overview_localize_data', array_merge( array( 'wsx_wizard_url' => WHOLESALEX_URL, 'wsx_wizard_dashboard_url' => menu_page_url( 'wholesalex', false ) ? menu_page_url( 'wholesalex', false ) : get_dashboard_url(), 'spa_route_pages' => $this->get_spa_route_pages(), 'mcp' => array( 'canManage' => current_user_can( 'manage_options' ), 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'feedback' => current_user_can( 'manage_options'... ); -
apply_filters( 'wholesalex_payment_rule_exempt_gateway_ids', array() ); -
apply_filters( 'wholesalex_plugin_name', __( 'WholesaleX', 'wholesalex' ) ); -
apply_filters( 'wholesalex_pricing_csv_aliases', $defaults ); -
apply_filters( 'wholesalex_pricing_csv_defaults', $rule, $rule_type ); -
apply_filters( 'wholesalex_pricing_csv_legacy_type', $rule_type, $raw ); -
apply_filters( 'wholesalex_pricing_csv_merge', $rule, $raw, $rule_type ); -
apply_filters( 'wholesalex_pricing_csv_product_filter', isset( $map[ $normalized ] ) ? $map[ $normalized ] : '', $value ); -
apply_filters( 'wholesalex_pricing_csv_rule_type', isset( $map[ $normalized ] ) ? $map[ $normalized ] : '', $value ); -
apply_filters( 'wholesalex_pricing_csv_selection', null, $value, $type ); -
apply_filters( 'wholesalex_pricing_owned_fields', $owned ); -
apply_filters( 'wholesalex_pricing_rule_sanitized', $out, $rule ); -
apply_filters( 'wholesalex_pricing_rule_types', array( 'wholesale_pricing', 'product_discount', 'cart_discount', 'bogo_discount' ) ); -
apply_filters( 'wholesalex_pricing_user_eligible', $is_eligible, $user_id ); -
apply_filters( 'wholesalex_pricing_vendor_product_fields', $product_fields, $rule ); -
apply_filters( 'wholesalex_priority_tier_result', array( 'src' => false, 'price' => false, 'tiers' => array(), ), $priority, $data, $product_id, $parent_id, $base_price, $cart_qty, $first_tier ); -
apply_filters( 'wholesalex_product_discount_write_result', null, $id, $discounts ); -
do_action( 'wholesalex_product_rule_promotions', $product, $this ); -
apply_filters( 'wholesalex_product_rule_type_label', $__rule_type, $discount ); -
apply_filters( 'wholesalex_product_target_handlers', array() ); -
apply_filters( 'wholesalex_profile_fields', array( '_profile_settings' => array( 'label' => sprintf( __( '%s Profile Settings', 'wholesalex' ), wholesalex()->get_plugin_name() ), 'attr' => array( '_tax_section' => array( 'label' => __( 'Override Tax Exemption', 'wholesalex' ), 'attr' => array( '_wholesalex_profile_override_tax_exemption' => array( 'type' => 'select', 'label' => __( 'Override Tax Exemption', 'wholesalex' ), 'options' => a... ); -
apply_filters( 'wholesalex_profile_response', array( 'default' => $this->get_profile_fields(), 'has_saved_tiers' => wholesalex()->has_saved_page_tiers( 'profile', $user_id ), 'settings' => array_merge( is_array( $__user_settings ) ? $__user_settings : array(), is_array( $__role_settings ) ? $__role_settings : array() ), ), $user_id ); -
apply_filters( 'wholesalex_profile_setting_data', $__settings, $user_id ); -
apply_filters( 'wholesalex_profile_updated_data', $updated_data, $user_id ); -
apply_filters( 'wholesalex_promotions_frontend_popup_modal_content', $modal_content ); -
do_action( 'wholesalex_promotions_popup_header' ); -
apply_filters( 'wholesalex_protected_role_ids', array( 'wholesalex_b2c_users', 'wholesalex_guest', ) ); -
apply_filters( 'wholesalex_recaptcha_allowed_hostnames', array( wp_parse_url( home_url(), PHP_URL_HOST ) ) ); -
apply_filters( 'wholesalex_register_backend_scripts', array( 'wholesalex_category' => array( 'src' => WHOLESALEX_URL . 'assets/js/whx_cat.js', 'asset' => WHOLESALEX_PATH . 'assets/js/whx_cat.asset.php', 'deps' => array(), 'ver' => WHOLESALEX_VER, 'in_footer' => true, ), 'wholesalex_overview' => array( 'src' => WHOLESALEX_URL . 'assets/js/whx_overview.js', 'asset' => WHOLESALEX_PATH . 'assets/js/whx_overview.asset.php', 'deps' => array(), 'ver' => ... ); -
apply_filters( 'wholesalex_register_backend_styles', $styles ); -
apply_filters( 'wholesalex_register_frontend_scripts', array( 'wholesalex_category' => array( 'src' => WHOLESALEX_URL . 'assets/js/whx_cat.js', 'asset' => WHOLESALEX_PATH . 'assets/js/whx_cat.asset.php', 'deps' => array(), 'ver' => WHOLESALEX_VER, 'in_footer' => true, ), 'wholesalex_overview' => array( 'src' => WHOLESALEX_URL . 'assets/js/whx_overview.js', 'asset' => WHOLESALEX_PATH . 'assets/js/whx_overview.asset.php', 'deps' => array(), 'ver' => ... ); -
apply_filters( 'wholesalex_register_frontend_styles', array( 'wholesalex_public' => array( 'src' => WHOLESALEX_URL . 'assets/css/wholesalex-public.css', 'deps' => array(), 'ver' => WHOLESALEX_VER, 'in_footer' => false, ), 'wholesalex' => array( 'src' => false, 'deps' => array( 'wholesalex_public' ), 'ver' => WHOLESALEX_VER, 'in_footer' => false, ), ) ); -
apply_filters( 'wholesalex_register_styles', array( 'wholesalex' => array( 'src' => WHOLESALEX_URL . 'assets/css/wholesalex-admin.css', 'deps' => array(), 'ver' => WHOLESALEX_VER, 'in_footer' => false, ), 'wholesalex_public' => array( 'src' => WHOLESALEX_URL . 'assets/css/wholesalex-public.css', 'deps' => array(), 'ver' => WHOLESALEX_VER, 'in_footer' => false, ), ) ); -
do_action( 'wholesalex_registration_customer_created', $registered_user_id, $submission ); -
apply_filters( 'wholesalex_registration_field_error', '', $field, $value ); -
apply_filters( 'wholesalex_registration_form_after_registration_redirect_url', wc_get_page_permalink( 'myaccount' ), $registered_user_id, $__registration_role ); -
apply_filters( 'wholesalex_registration_form_field', $output, $field['type'], $field['name'], $input_variation, $field ); -
apply_filters( 'wholesalex_registration_form_password_strength_meter_status', true ); -
do_action( "wholesalex_registration_form_user_{$__user_login_option}", $registered_user_id, $__registration_role ); -
wholesalex_registration_form_user_login_option
filter Used by 2 plugins β Copy link Customise this hookapply_filters( 'wholesalex_registration_form_user_login_option', 'manual_login' ); -
wholesalex_registration_form_user_status_{$__user_status_option}
action Copy link Customise this hookdo_action( "wholesalex_registration_form_user_status_{$__user_status_option}", $registered_user_id, $__registration_role ); -
do_action( 'wholesalex_registration_inline_script', $registration_fields ); -
apply_filters( 'wholesalex_registration_pending_email_smart_tags', wholesalex()->smart_tag_name( '{date}', '{admin_name}', '{site_name}' ) ); -
apply_filters( 'wholesalex_registration_provider', null ); -
apply_filters( 'wholesalex_registration_runtime_fields', array( 'woo_custom_fields' => $woo_custom_fields, 'wholesalex_fields' => $registration_fields, 'billing_fields' => $billing_fields, 'myaccount_fields' => $myaccount_fields, ), $fields ); -
apply_filters( 'wholesalex_registration_shortcode_tags', array( 'wholesalex_registration', 'wholesalex_login_registration' ) ); -
do_action( 'wholesalex_render_admin_app' ); -
do_action( 'wholesalex_render_product_tier_table' ); -
apply_filters( 'wholesalex_restriction_handlers', array() ); -
apply_filters( 'wholesalex_restriction_runtime_versions', array() ); -
do_action( 'wholesalex_role_after_content_render' ); -
do_action( 'wholesalex_role_auto_migrate', $role['id'], $__current_user_role ); -
apply_filters( 'wholesalex_role_csv_importer_args', $args, $importer_class ); -
apply_filters( 'wholesalex_role_csv_importer_class', '\WHOLESALEX\WHOLESALEX_Role_CSV_Importer' ); -
wholesalex_role_export_{$this->export_type}_column_{$column_id}
filter Copy link Customise this hookapply_filters( "wholesalex_role_export_{$this->export_type}_column_{$column_id}", '', $role, $column_id ); -
apply_filters( 'wholesalex_role_fields', array( 'create_n_save_btn' => array( 'type' => 'buttons', 'attr' => array( 'create' => array( 'type' => 'button', 'label' => __( 'Add New B2B Role', 'wholesalex' ), ), ), ), '_role' => array( 'label' => __( 'Create New Role', 'wholesalex' ), 'type' => 'role', 'attr' => array( '_rule_title_n_status_section' => array( 'label' => '', 'type' => 'title_n_status', '_id' => 1, 'attr' => array( '_role_... ); -
do_action( 'wholesalex_role_import_before_import', $parsed_data ); -
do_action( 'wholesalex_role_import_before_process_item', $data ); -
do_action( 'wholesalex_role_import_inserted_role', $role, $data ); -
apply_filters( 'wholesalex_role_import_pre_insert_role_data', $role, $data ); -
apply_filters( 'wholesalex_role_import_process_item_data', $data ); -
do_action( 'wholesalex_role_importer_before_set_parsed_data', $row, $mapped_keys ); -
apply_filters( 'wholesalex_role_importer_default_time_limit', 20 ); -
apply_filters( 'wholesalex_role_importer_formatting_callbacks', $callbacks, $this ); -
apply_filters( 'wholesalex_role_importer_memory_exceeded', $return ); -
apply_filters( 'wholesalex_role_importer_role_id_prefix', 'wholesalex_', $data ); -
apply_filters( 'wholesalex_role_importer_time_exceeded', $return ); -
apply_filters( 'wholesalex_role_payment_discount_on_tax', false ); -
apply_filters( 'wholesalex_role_payment_method_discount_name', __( 'Payment Method Discount!', 'wholesalex' ), $selected_gateway, $method_rules ); -
apply_filters( 'wholesalex_role_payment_method_extra_charge_name', __( 'Payment Method Extra Charge:', 'wholesalex' ), $selected_gateway, $method_rules ); -
apply_filters( 'wholesalex_rule_handlers', array( 'regular' => Wholesale_Pricing_Regular_Discount::class, 'product_discount' => Wholesale_Pricing_Product_Discount::class, 'cart_discount' => Wholesale_Pricing_Cart_Discount::class, 'bogo_discount' => Wholesale_Pricing_Bogo_Discount::class, ) ); -
apply_filters( 'wholesalex_save_category_discount_provider', null, $id, $discounts ); -
apply_filters( 'wholesalex_save_dynamic_rules', $canonical, $is_frontend ); -
do_action( 'wholesalex_save_profile_data', $user_id, wholesalex()->sanitize( $_POST ) ); -
do_action( "wholesalex_set_status_{$action}", $user_id, $old_status ); -
do_action( 'wholesalex_set_status_inactive', $user_id ); -
do_action( 'wholesalex_set_status_reject', $user_id ); -
do_action( 'wholesalex_set_user_approval_needed', $user_id ); -
apply_filters( 'wholesalex_setting_fields', array( 'general' => array( 'label' => __( 'General Settings', 'wholesalex' ), 'attr' => array( 'type' => 'general_zero', '_settings_status' => array( 'type' => 'radio', 'label' => __( 'Plugin Status', 'wholesalex' ), 'options' => array( 'b2b' => __( 'B2B (Wholesale Only)', 'wholesalex' ), 'b2b_n_b2c' => __( 'B2B & B2C Hybrid (Wholesale and Public)', 'wholesalex' ), ), 'default' => 'b2b', 'toolt... ); -
apply_filters( 'wholesalex_settings_product_tier_layouts', array( 'style_one' => WHOLESALEX_URL . '/assets/icons/badge-style-one.svg', 'style_two' => WHOLESALEX_URL . '/assets/icons/badge-style-two.svg', 'style_three' => WHOLESALEX_URL . '/assets/icons/badge-style-three.svg', 'style_four' => WHOLESALEX_URL . '/assets/icons/badge-style-four.svg', 'style_five' => WHOLESALEX_URL . '/assets/icons/badge-style-five.svg', ) ); -
apply_filters( 'wholesalex_shipping_rule_merged_all_methods', false ); -
do_action( 'wholesalex_shortcodes_registered', $this ); -
apply_filters( 'wholesalex_single_product_discount_action', array( 'sale_price' => $sale_price, 'product' => $product, ) ); -
apply_filters( 'wholesalex_single_product_fields', array( '_b2c_section' => array( 'label' => '', 'attr' => $__b2c_roles, ), '_b2b_section' => array( 'label' => sprintf( __( '%s B2B Special', 'wholesalex' ), wholesalex()->get_plugin_name() ), 'attr' => $__b2b_roles, ), ) ); -
apply_filters( 'wholesalex_single_product_settings_field', array( '_product_settings_tab' => array( 'type' => 'custom_tab', 'attr' => array( '_settings_product_visibility' => array( 'label' => __( 'Visibility', 'wholesalex' ), 'type' => 'visibility_section', 'attr' => array( '_hide_for_b2c' => array( 'type' => 'slider', 'label' => __( 'Hide product for B2C', 'wholesalex' ), 'help' => '', 'default' => 'no', ), '_hide_for_visitors' => array( 'type' => 's... ); -
apply_filters( 'wholesalex_spa_admin_routes', array( $menu_slug => '/overview', 'wholesalex_wholesale_pricing' => '/wholesale-pricing', 'wholesalex_dynamic_rules' => '/dynamic-rules', 'wholesalex_role' => '/user-role', 'wholesalex-registration' => '/registration', 'wholesalex-pro-features' => '/pro-features', 'wholesalex-users' => '/customers', 'wholesalex-settings' => '/settings', 'wholesalex-ai-tools' => '/mcp', 'wholesalex-our-products'... ); -
apply_filters( 'wholesalex_spa_route_pages', $route_pages ); -
apply_filters( 'wholesalex_spa_route_titles', array( '/overview' => __( 'Overview', 'wholesalex' ), '/wholesale-pricing' => __( 'Wholesale Pricing', 'wholesalex' ), '/edit-wholesale-price' => __( 'Wholesale Pricing', 'wholesalex' ), '/dynamic-rules' => __( 'Dynamic Rules', 'wholesalex' ), '/user-role' => __( 'User Roles', 'wholesalex' ), '/registration' => __( 'Registration Form', 'wholesalex' ), '/pro-features' => __( 'Pro Features', 'who... ); -
apply_filters( "wholesalex_transient_{$transient}", $value, $transient ); -
do_action( 'wholesalex_user_auto_approval', $user_id ); -
do_action( 'wholesalex_user_auto_login', $user_id ); -
do_action( 'wholesalex_user_email_verified', $id ); -
apply_filters( 'wholesalex_user_export_column_data', $user_data ); -
apply_filters( 'wholesalex_user_export_default_columns', array( 'user_id' => 'User ID', 'username' => 'Username', 'first_name' => 'First Name', 'last_name' => 'Last Name', 'nickname' => 'Nickname', 'display_name' => 'Display Name', 'email' => 'Email', 'bio' => 'Biographical Info', 'avatar' => 'Avatar', 'password' => 'Password', 'wholesalex_role' => sprintf( '%s Role', wholesalex()->get_plugin_name() ), 'wholesalex_account_status' => sprintf( '%s Acco... ); -
apply_filters( 'wholesalex_user_role_change_request_columns', $columns ); -
do_action( 'wholesalex_user_role_updated', $user_id, $prev_role_id, $new_role_id ); -
apply_filters( 'wholesalex_users_bulk_actions', $actions ); -
apply_filters( 'wholesalex_users_column_value', $column_id, (array) $user, $column_name ); -
apply_filters( 'wholesalex_users_columns', $columns ); -
apply_filters( 'wholesalex_users_statuses', $statuses ); -
do_action( 'wholesalex_valid_dynamic_rules', $this->valid_dynamic_rules ); -
apply_filters( 'wholesalex_variation_prices_hash', md5( wp_json_encode( $context ) ), $product, $context ); -
apply_filters( 'wholesalex_wholesale_pricing_bogo_discount_is_taxable', false, $fee ); -
apply_filters( 'wholesalex_wholesale_pricing_bogo_discount_text', $label, $rule, $product, $free_quantity ); -
apply_filters( 'wholesalex_wholesale_pricing_bogo_free_quantity', $free_quantity, $rule, $group ); -
apply_filters( 'wholesalex_wholesale_pricing_bogo_promo_button_text', __( 'Get exclusive offers', 'wholesalex' ), $product, $rules ); -
apply_filters( 'wholesalex_wholesale_pricing_cart_discount_promo_button_text', __( 'Get exclusive offers', 'wholesalex' ), $product, $cart_discounts ); -
apply_filters( 'wholesalex_wholesale_pricing_cart_price_data', $data, $item, $key, $cart, $this ); -
do_action( 'wholesalex_wholesale_pricing_cart_start', $cart ); -
apply_filters( 'wholesalex_wholesale_pricing_condition_context', array(), $rule, $product, $quantity, $preview_conditions, $this ); -
apply_filters( 'wholesalex_wholesale_pricing_condition_value', null, $field, $tier, $rule_filter ); -
apply_filters( 'wholesalex_wholesale_pricing_csv_columns', array( 'schema_version' => __( 'CSV Schema Version', 'wholesalex' ), 'exclude_products' => __( 'Excluded Products', 'wholesalex' ), 'owner_id' => __( 'Owner ID', 'wholesalex' ), 'owner_type' => __( 'Owner Type', 'wholesalex' ), 'created_by' => __( 'Created By', 'wholesalex' ), 'cart_presentation' => __( 'Cart Presentation Data', 'wholesalex' ), 'bogo_presentation' => __( 'BOGO Presentation Data... ); -
apply_filters( 'wholesalex_wholesale_pricing_csv_import', null, $raw, $line, $dry_run, $this, $existing ); -
apply_filters( 'wholesalex_wholesale_pricing_csv_value', null, $rule, $column_key ); -
apply_filters( 'wholesalex_wholesale_pricing_display_quantity', $quantity, $product, $rule, $this ); -
do_action( 'wholesalex_wholesale_pricing_engine_ready', $this ); -
apply_filters( 'wholesalex_wholesale_pricing_expand_translated_filter_ids', true, $filter ); -
apply_filters( 'wholesalex_wholesale_pricing_manager_context', array( 'is_vendor' => false, 'vendor_id' => 0, 'owner_type' => 'admin', 'can_manage' => false, ) ); -
apply_filters( 'wholesalex_wholesale_pricing_price_data', $best_price_data, $product, $quantity, $base_price, $this ); -
apply_filters( 'wholesalex_wholesale_pricing_price_html', null, $product, $price_data, $price_html, $this ); -
apply_filters( 'wholesalex_wholesale_pricing_provider_result', null, $operation, $id, $payload, $authoritative ); -
apply_filters( 'wholesalex_wholesale_pricing_range_html', null, $product, $range_data, $base_html, $wholesale_html ); -
apply_filters( 'wholesalex_wholesale_pricing_records', $rules ); -
apply_filters( 'wholesalex_wholesale_pricing_rule_eligible', true, $rule, $product, $quantity, $this ); -
apply_filters( 'woocommerce_can_reduce_order_stock', true, $order ); -
apply_filters( 'woocommerce_can_restore_order_stock', true, $order ); -
apply_filters( 'woocommerce_login_credentials', $creds ); -
apply_filters( 'woocommerce_login_redirect', wc_get_page_permalink( 'myaccount' ), $user ); -
do_action( 'woocommerce_low_stock', wc_get_product( $change['product']->get_id() ) ); -
do_action( 'woocommerce_no_stock', wc_get_product( $change['product']->get_id() ) ); -
woocommerce_payment_complete_reduce_order_stock
filter Used by 4 plugins β Copy link Customise this hookapply_filters( 'woocommerce_payment_complete_reduce_order_stock', ! $stock_reduced, $order_id ); -
apply_filters( 'woocommerce_payment_gateways', array() ); -
apply_filters( 'woocommerce_process_login_errors', $validation_error, $creds['user_login'], $creds['user_password'] ); -
do_action( 'woocommerce_product_before_set_stock', $product_with_stock ); -
do_action( 'woocommerce_product_on_backorder', array( 'product' => wc_get_product( $change['product']->get_id() ), 'order_id' => $order->get_id(), 'quantity' => abs( $change['from'] - $change['to'] ), ) ); -
do_action( 'woocommerce_product_set_stock', $product_with_stock ); -
woocommerce_product_stock_status_use_radio
filter Used by 2 plugins β Copy link Customise this hookapply_filters( 'woocommerce_product_stock_status_use_radio', $stock_status_count <= 3 && $stock_status_count >= 1 ); -
do_action( 'woocommerce_reduce_order_stock', $order ); -
apply_filters( 'woocommerce_refund_restock_note', $note, $new_stock - $quantity, $new_stock, $order, $product ); -
apply_filters( 'woocommerce_registration_redirect', $__redirect_url, $registered_user_id ); -
do_action( 'woocommerce_restock_refunded_item', $product->get_id(), $new_stock - $quantity, $new_stock, $order, $product ); -
do_action( 'woocommerce_restore_order_stock', $order ); -
apply_filters( 'woocommerce_update_product_stock_query', $sql, $product_id_with_stock, $new_stock, $operation ); -
do_action( 'woocommerce_variation_before_set_stock', $product_with_stock ); -
do_action( 'woocommerce_variation_set_stock', $product_with_stock ); -
apply_filters( 'wsx_remove_b2c_guest_user_role', false ); -
apply_filters( 'xpo_active_notice_lists', array() );
Generated from WholesaleX'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: