shopp_email_exists

filters the test results for an existing Shopp customer record with the specified email address.

add_filter( 'shopp_email_exists', [callback] )

@param bool $error will be true if an error will occur because the tested email already exists for a Shopp customer record

Description

filters the test results for an existing Shopp customer record with the specified email address.

This filter should return true to trigger an error on Customer record already using the email address. This filter should return false to prevent an error on a Customer record that is already using the email address.

Example

// register filter callback
add_filter('shopp_email_exists', 'shopp_email_exists_filter');

// create filter function
function shopp_email_exists_filter( $error ) {
    // always prevent error on used email address
    return false;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar