gform_user_registration_check_email_pre_signup_activation

gform_user_registration_check_email_pre_signup_activation

DescriptionUsageParametersPlacementSinceSource Code

Description
This filter can be used to disable the check for an email already being used by a registered user allowing the use of custom code or third-party plugins to bypass this WordPress core limitation in the registration process.
Usage
add_filter( 'gform_user_registration_check_email_pre_signup_activation', '__return_false' );

If you plan to use this filter to allow users to use already registered emails for new registrations, you need to use also the gform_user_registration_validation filter.

Parameters

$check_email bool
True or false.

Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms User Registration Add-On 2.4.2.
Source Code
$check_email = apply_filters( 'gform_user_registration_check_email_pre_signup_activation', true );

This filter is located in GFUserSignups::activate_signup() in signups.php.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注