jetpack_account_protection_user_requires_protection
jetpack_account_protection_user_requires_protection
Appears in: jetpack.14.5
Hook Type: filter
Displaying hooks found in version: jetpack.14.5apply_filters('jetpack_account_protection_user_requires_protection') is found 1 times:
- /jetpack_vendor/automattic/jetpack-account-protection/src/class-password-detection.php line 398394395396397398399400401402403404
* @param bool
$requires_protection
Whether
or
not password detection should be applied.
* @param \WP_User
$user
The user object to apply the filter against.
*/
$user_requires_protection
= apply_filters(
'jetpack_account_protection_user_requires_protection'
, true,
$user
);
if
( !
$user_requires_protection
) {
return
false;
}
return
wp_check_password(
$password
,
$user
->user_pass,
$user
->ID );