WordPress filter hook
woocommerce_lost_password_confirmation_message
Defined by WooCommerce and fired by 4 plugins in total, running on 7M+ sites between them.
“This filter is documented in woocommerce/templates/myaccount/lost-password-confirmation.php”
How to use woocommerce_lost_password_confirmation_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:
add_filter( 'woocommerce_lost_password_confirmation_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.
4 plugins that fire woocommerce_lost_password_confirmation_message
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_lost_password_confirmation_message', esc_html__( 'A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset.', 'woocommerce' ) )templates/myaccount/lost-password-confirmation.php:25 -
ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs
apply_filters( 'woocommerce_lost_password_confirmation_message', esc_html__( 'A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset.', 'shopengine-gutenberg-addon' ) )blocks/account-lost-password-form/dummy-lost-password.php:10 -
StoreBuild400+ installs
apply_filters( 'woocommerce_lost_password_confirmation_message', esc_html__('A password reset email has been sent to the email address on file for your account, but may take several minutes to show up in your inbox. Please wait at least 10 minutes before attempting another reset.', 'shopbuild') )public/woocommerce/myaccount/lost-password-confirmation.php:33 -
ShopCuratorFewer than 10 installs
apply_filters( 'woocommerce_lost_password_confirmation_message', __( 'If an account matches what you entered, a link to choose a new password is on its way to the email address on that account. It can take a few minutes to arrive.', 'shopcurator' ) )templates/woocommerce/myaccount/lost-password-confirmation.php:29
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.