Wholesale Essentials for WooCommerce 1.0.2 has 37 actions and 51 filters, read directly from its source code on Nov 19, 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 Wholesale Essentials for WooCommerce fires an action
add_action( 'wcwp_register_form', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Wholesale Essentials for WooCommerce is about to use
add_filter( 'wcwp_login_shortcode_tag', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
/** * Filters the login shortcode tag. */ apply_filters( 'wcwp_login_shortcode_tag', 'wholesale_login' ); -
barn2_wc_settings_custom_fields_load_scripts_{$this->plugin->get_slug()}
filter Copy link Customise this hook/** * Filter to determine if the custom fields scripts should be loaded. */ apply_filters( "barn2_wc_settings_custom_fields_load_scripts_{$this->plugin->get_slug()}", \true, $this->plugin ); -
/** * Filters whether to allow wholesale price calculation on a product. */ apply_filters( 'wcwp_enable_wholesale_price_calculation', true, $product, wp_get_current_user(), $price, $cart_item ); -
/** * Output after the Email input on the Login/Register form. */ do_action( 'wcwp_register_form' ); -
/** * Filter the steps of the wizard. */ apply_filters( "{$this->get_slug()}_wizard_steps", $steps ); -
/** * Fires after the plugin is updated. */ do_action( "{$this->plugin->get_slug()}_updated", $db_version, $code_version, $this->plugin ); -
/** * Filter the EDD Software Licensing API endpoint. */ apply_filters( 'barn2_edd_licensing_api_endpoint', $endpoint, $this, $params ); -
/** * Filter whether to render the Help Scout Beacon for this plugin. */ apply_filters( 'barn2_helpscout_beacon_should_render', \true, $this->plugin_slug ); -
/** * Fires after the activation process has completed. */ do_action( "barn2_license_after_activate_{$this->item_id}", $license_key, $url_to_activate, $license_data, $result ); -
/** * Fires after the deactivation process has completed. */ do_action( "barn2_license_after_deactivate_{$this->item_id}", $license_key, $url_to_deactivate, $license_data, $result ); -
/** * Fires after the license has been overridden. */ do_action( "barn2_license_after_override_{$this->item_id}", $license_key, $url_to_activate, $license_data, \true ); -
/** * Fires after the refresh process has completed. */ do_action( "barn2_license_after_refresh_{$this->item_id}", $license_key, $url_to_refresh, $license_data, $result ); -
/** * Filters the list of help links used at the top of the plugin settings page. */ apply_filters( 'barn2_plugin_settings_help_links', ['doc' => ['url' => $plugin->get_documentation_url(), 'label' => __('Documentation', 'barn2'), 'target' => '_blank'], 'support' => ['url' => $plugin->get_support_url(), 'label' => __('Support', 'barn2'), 'target' => '_blank']], $plugin ); -
/** * Filters the sale campaigns shown by the Barn2 sale notice. */ apply_filters( 'barn2_sale_notice_campaigns', $campaigns ); -
/** * Output after the HTML of the Login/Register form. */ do_action( 'wcwp_after_login_register_form' ); -
/** * Output after the HTML of the Register form. */ do_action( 'wcwp_after_register_form' ); -
/** * Output before the HTML of the Login/Register form. */ do_action( 'wcwp_before_login_register_form' ); -
/** * Output before the HTML of the Register form. */ do_action( 'wcwp_before_register_form' ); -
/** * Filters whether to calculate wholesale price in the cart. */ apply_filters( 'wcwp_calculate_wholesale_price_in_cart', true, $cart, $this->role ); -
/** * Filters the calculated wholesale price for a product. */ apply_filters( 'wcwp_calculated_wholesale_price', $price, $this->product, $this->role ); -
/** * Filters the calculated wholesale sale price for a product. */ apply_filters( 'wcwp_calculated_wholesale_sale_price', $sale_price, $this->product, $this->role ); -
/** * Triggered after the category discount is changed. */ do_action( 'wcwp_category_discount_changed', $role_name ); -
/** * Triggered after a customer is created following a successful registration. */ do_action( 'wcwp_created_customer', $customer_id, $new_customer_data ); -
/** * Filters the body content of a wholesale email. */ apply_filters( "wcwp_email_body_content_{$this->id}", $this->format_string( $content ), $this->object, $this ); -
/** * Filters the column class for the Login form. */ apply_filters( 'wcwp_login_column_class', 'u-column1 col-1' ); -
/** * Filters the login redirect URL. */ apply_filters( 'wcwp_login_redirect', remove_query_arg( 'wc_error', $redirect ), $user ); -
/** * Filters the column class for the Login/Register form wrapper. */ apply_filters( 'wcwp_login_register_columns_wrap_class', 'u-columns col2-set' ); -
/** * Triggered if a new customer is created and auto approved. */ do_action( 'wcwp_new_user_auto_approved', $customer_id, $password ); -
/** * Triggered after cache prevention on wholesale login page. */ do_action( 'wcwp_prevent_caching_login_page' ); -
/** * Filter the transient key name for a generated wholesale price on a product. */ apply_filters( 'wcwp_product_price_transient_key', sprintf( '%s_%s', $this->role->get_name(), $this->product->get_id() ), $this->product, $this->role ); -
/** * Filters the column class for the Register form. */ apply_filters( 'wcwp_register_column_class', 'u-column2 col-2' ); -
/** * Triggered before a registration is processed or failed. */ do_action( 'wcwp_register_post', $username, $email, $errors ); -
/** * Filters the register shortcode tag. */ apply_filters( 'wcwp_register_shortcode_tag', 'wholesale_registration' ); -
/** * Triggered after a Wholesale Role is updated. */ do_action( 'wcwp_role_details_updated', $this->data['name'], $this->data ); -
/** * Filters whether to skip wholesale calculations for a product altogether * before even running any additional checks. */ apply_filters( 'wcwp_skip_wholesale_calculations', false, $product ); -
/** * Triggered after a failed wholesale login. */ do_action( 'woocommerce_login_failed' ); -
/** * Allow filtering the allowed HTML tags array. */ apply_filters( 'wptrt_admin_notices_allowed_html', $this->allowed_html ); -
apply_filters( 'barn2_upsell_endpoint_url', \untrailingslashit(static::get_barn2_api_url() . '/wp-json/upsell/v1/get/') ); -
apply_filters( 'barn2_api_url', $url, $relative_path ); -
do_action( "barn2_license_activated_{$this->item_id}", $license_key, $url_to_activate ); -
apply_filters( 'barn2_plugin_allow_automatic_update', \true, $this->plugin ); -
apply_filters( 'barn2_website_url', $url, $relative_path ); -
do_action( 'woocommerce_register_form' ); -
do_action( 'woocommerce_register_form_end' ); -
do_action( 'woocommerce_register_form_start' ); -
do_action( 'woocommerce_register_form_tag' ); -
apply_filters( 'barn2_edd_licensing_api_request_args', ['timeout' => self::API_TIMEOUT, 'body' => $params] ); -
apply_filters( 'barn2_edd_store_url', $url, $relative_path ); -
apply_filters( 'barn2_kb_url', $url ); -
do_action( "barn2_license_deactivated_{$this->item_id}", $license_key, $url_to_deactivate ); -
apply_filters( 'barn2_license_expired_overlay_markup', $markup, $plugin ); -
apply_filters( 'barn2_license_expired_overlay_template', $default_template, $plugin ); -
apply_filters( "barn2_license_guard_config_{$plugin->get_id()}", $config, $plugin ); -
apply_filters( "barn2_license_overlay_screens_{$this->plugin->get_id()}", $this->screens, $this->plugin ); -
do_action( "barn2_license_refreshed_{$this->item_id}", $license_key, $url_to_refresh ); -
apply_filters( 'barn2_plugin_disable_license_key_check', \false, $this->license ); -
apply_filters( 'barn2_plugin_hide_license_notices', \false, $this->plugin ); -
apply_filters( "barn2_plugin_is_beta_testing_{$this->plugin->get_slug()}", \false ); -
apply_filters( 'barn2_plugin_license_key_setting', $setting, $this ); -
apply_filters_deprecated( 'barn2_plugins_title_links', [$links, $plugin], '1.1', 'barn2_plugin_settings_help_links' ); -
apply_filters( 'login_errors', $e->getMessage() ); -
apply_filters( 'wcwp_disregard_wholesale_pricing', $disregard, $product ); -
do_action( 'wcwp_price_handler_after_price_html' ); -
do_action( 'wcwp_price_handler_before_price_html' ); -
apply_filters( 'wcwp_product_is_on_sale', $onsale, $this, $role->get_name(), $product ); -
do_action( 'wcwp_wholesale_price_after_get_pricing' ); -
do_action( 'wcwp_wholesale_price_before_get_pricing' ); -
apply_filters( 'woocommerce_create_page_id', $valid_page_found, $slug, $page_content ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
do_action( "woocommerce_email_setting_column_{$key}", $email ); -
apply_filters( 'woocommerce_email_setting_columns', [ 'status' => '', 'name' => __( 'Email', 'wholesale-essentials-for-woocommerce' ), 'email_type' => __( 'Content type', 'wholesale-essentials-for-woocommerce' ), 'recipient' => __( 'Recipient(s)', 'wholesale-essentials-for-woocommerce' ), 'actions' => '', ] ); -
do_action( 'woocommerce_email_settings_after', $this ); -
do_action( 'woocommerce_email_settings_before', $this ); -
apply_filters( "woocommerce_get_sections_{$this->id}", $sections ); -
apply_filters( "woocommerce_get_settings_{$this->id}", $settings, $current_section ); -
apply_filters( 'woocommerce_locate_core_template', $core_file, $template, $this->template_base, $this->id ); -
apply_filters( 'woocommerce_login_credentials', $creds ); -
do_action( 'woocommerce_login_form' ); -
do_action( 'woocommerce_login_form_end' ); -
do_action( 'woocommerce_login_form_start' ); -
apply_filters( 'woocommerce_new_customer_data', [ 'user_login' => $username, 'user_pass' => $password, 'user_email' => $email, ] ); -
apply_filters( 'woocommerce_process_login_errors', $validation_error, $creds['user_login'], $creds['user_password'] ); -
apply_filters( 'woocommerce_process_registration_errors', $validation_error, $username, '', $email ); -
do_action( 'woocommerce_register_post', $username, $email, $errors ); -
apply_filters( 'woocommerce_registration_errors', $errors, $username, $email ); -
apply_filters( 'woocommerce_template_directory', 'woocommerce', $template );
Generated from Wholesale Essentials 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: