jetpack_account_protection_user_requires_protection

jetpack_account_protection_user_requires_protection

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.14.5

apply_filters('jetpack_account_protection_user_requires_protection') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-account-protection/src/class-password-detection.php line 398
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    * @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 );