WordPress action hook
woocommerce_reset_password_notification
Defined by WooCommerce and fired by 8 plugins in total, running on 7M+ sites between them.
“#1 Woocommerce Hook”
How to use woocommerce_reset_password_notification
It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'woocommerce_reset_password_notification', function( $user_login, $key ) {
// Your code runs here.
}, 10, 2 );Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
8 plugins that fire woocommerce_reset_password_notification
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
do_action( 'woocommerce_reset_password_notification', $user->user_login, $key )includes/class-wc-form-handler.php:193 -
LCT Useful Shortcodes & Functions10+ installs
do_action( 'woocommerce_reset_password_notification', $user->user_login, $key )code/plugins/acf/ajax.php:211 -
Knowband Mobile App Builder10+ installs
do_action( 'woocommerce_reset_password_notification', $user_login, $key )api/2.0/wmab-customer.php:2521 -
Retora10+ installs
do_action( 'woocommerce_reset_password_notification', $user->user_login, $key )includes/guest/class-guest-form.php:630 -
Vootouch10+ installs
do_action( 'woocommerce_reset_password_notification', $user_login, $key )vootouchservice/forgetpassword.php:106 -
WALoops Express Checkout for WooCommerceFewer than 10 installs
do_action( 'woocommerce_reset_password_notification', $user->user_login, $key )includes/class-wlec-email-auth.php:238 -
BYLTCommerce ToolkitFewer than 10 installs
do_action( 'woocommerce_reset_password_notification', $user->user_login, $key )includes/class-bylt-customers.php:101 -
Blowball IntegrationFewer than 10 installs
do_action( 'woocommerce_reset_password_notification', $login, $key )src/Plugins/PbxUserPlugin/PbxUserPlugin.php:170
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.