WordPress filter hook · part of WordPress core
allow_password_reset
A WordPress core filter that 43 plugins also fire themselves, running on 7.3M+ sites between them.
“Filters boolean: 'false' if the given user should not be allowed to reset password, otherwise 'true'.”
How to use allow_password_reset
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'allow_password_reset', function( $value, $ID ) {
// Change $value here.
return $value;
}, 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.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
43 plugins that fire allow_password_reset
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'allow_password_reset', true, $user_data->ID )includes/shortcodes/class-wc-shortcode-my-account.php:389 -
Tutor LMS90,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )classes/FormHandler.php:99 -
LearnPress60,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )inc/class-lp-forms-handler.php:477 -
User Registration & Membership50,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )includes/shortcodes/class-ur-shortcode-my-account.php:514 -
WP Travel Engine20,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )includes/classes/Core/Shortcodes/UserAccount.php:639 -
User Frontend20,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )includes/Free/Simple_Login.php:879 -
UsersWP10,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )includes/class-forms.php:2042 -
FluentAuth10,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )app/Hooks/Handlers/CustomAuthHandler.php:1124 -
Affiliate Program Suite10,000+ installs
apply_filters( 'allow_password_reset', true, $user->ID )includes/users/shortcodes/functions-actions-shortcodes.php:647 -
Fluent Support10,000+ installs
apply_filters( 'allow_password_reset', true, $user->ID )app/Modules/Auth/AuthController.php:345 -
Masteriyo LMS6,000+ installs
apply_filters( 'allow_password_reset', true, $user->get_id() )includes/FormHandler/RequestPasswordResetFormHandler.php:116 -
WP Delicious4,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )src/dashboard/class-delicious-recipes-user-account.php:225 -
WP Travel3,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )inc/class-wp-travel-user-account.php:255 -
WPMobile.App3,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )inc/functions/shortcodes.php:35 -
Pie Register1,000+ installs
apply_filters( 'allow_password_reset', true, $user->ID )forgot_password.php:117 -
JSON API User1,000+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )controllers/User.php:337 -
WP Frontend Profile100+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )inc/class-wpfep-login.php:578 -
Ultimate AJAX Login90+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )lib/class-ual-widget.php:236 -
ETBS Account Guard60+ installs
apply_filters( 'allow_password_reset', true, 0 )inc/class-acgd-login-name.php:684 -
SB Login60+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )sb-login.php:379 -
BoxCart50+ installs
apply_filters( 'allow_password_reset', true, 0 )includes/frontend/class-boxcart-account.php:1738 -
Ajax BootModal Login40+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )inc/authenticate.php:194 -
DynamicKit for Elementor20+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )modules/login-form/module.php:240 -
Knowband Mobile App Builder10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )api/2.0/wmab-customer.php:2479 -
Author: Francis Crossen (fcrossen)10+ installs
apply_filters( 'allow_password_reset', true, $u->ID )tina_mvc/pages/registration_controller.php:252 -
WPBoutik10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )classes/plugin.php:1298 -
YOOAdmin10+ installs
apply_filters( 'allow_password_reset', $allowed, $user->ID, $user )includes/helpers/wp-compat.php:118 -
Ajax Login By WPH10+ installs
apply_filters( 'allow_password_reset', true, $user->data->ID )php/functions.php:197 -
RESTful JSON API10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )controllers/user.php:368 -
CubeAccount Frontend Login10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )cubeacct_wplogin.php:146 -
System Ticket Support10+ installs
apply_filters( 'allow_password_reset', true, $user->ID )inc/form-handler.class.php:397 -
Radin app10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )includes/API/Controller/ForgetPasswordControllerRadinapp.php:47 -
YaExam10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )includes/shortcodes/class-yaexam-shortcode-my-account.php:207 -
Android and iOS App plugin for WooCommerce by WSD10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )controllers/User.php:270 -
Anar Toolkit10+ installs
apply_filters( 'allow_password_reset', true, $user->ID )src/Auth/PasswordRecovery.php:61 -
iw profile10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )iw-profile.php:462 -
Front End Login Form10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )loginForm.php:77 -
FoodBoxBooker10+ installs
apply_filters( 'allow_password_reset', true, $user_data->ID )helper/foodboxbooker-data.php:1225 -
SchedopiaFewer than 10 installs
apply_filters( 'allow_password_reset', true, $user->ID )includes/Services/CustomerPortal/Auth.php:146 -
atshift MembersFewer than 10 installs
apply_filters( 'allow_password_reset', true, $user->ID )includes/class-registration.php:97 -
23h Brand Ambassador (Affiliate, Referral)Fewer than 10 installs
apply_filters( 'allow_password_reset', true, $user->ID )includes/users/shortcodes/functions-actions-shortcodes.php:647 -
Pay2PostFewer than 10 installs
apply_filters( 'allow_password_reset', true, $user_data->ID )lib/framework/includes/views-login.php:295 -
XC Authentication PluginFewer than 10 installs
apply_filters( 'allow_password_reset', true, $user_data->ID )wp-xc-login.php:191
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.