WordPress filter hook

woocommerce_reset_password_message

Defined by WooCommerce and fired by 6 plugins in total, running on 7M+ sites between them.

“This filter is documented in woocommerce/templates/myaccount/form-reset-password.php”

How to use woocommerce_reset_password_message

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_reset_password_message', function( $html__ ) {
	// Change $html__ here.
	return $html__;
}, 10, 1 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

6 plugins that fire woocommerce_reset_password_message

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_reset_password_message', esc_html__( 'Enter a new password below.', 'woocommerce' ) ) templates/myaccount/form-reset-password.php:25
  2. ReCaptcha Integration for WordPress icon ReCaptcha Integration for WordPress9,000+ installs apply_filters( 'woocommerce_reset_password_message', __( 'Enter a new password below.', 'wp-recaptcha-integration') ) inc/woocommerce/myaccount/form-lost-password.php:27
  3. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs apply_filters( 'woocommerce_reset_password_message', __('Enter a new password below.', 'shopengine-gutenberg-addon') ) blocks/account-form-login/password/password-reset-form.php:37
  4. Kubelio Companion icon Kubelio Companion500+ installs apply_filters( 'woocommerce_reset_password_message', __( 'Enter a new password below.', 'kubelio-companion' ) ) src/Account/views/reset-password.php:17
  5. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_reset_password_message', esc_html__('Enter a new password below.', 'shopbuild') ) public/woocommerce/myaccount/form-reset-password.php:39
  6. ShopCurator icon ShopCuratorFewer than 10 installs apply_filters( 'woocommerce_reset_password_message', esc_html__( 'Enter a new password, then enter it again to confirm it.', 'shopcurator' ) ) templates/woocommerce/myaccount/form-reset-password.php:34

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.