shopp_passwords_required

filters the form validation of the password field on the checkout form.

add_filter( 'shopp_passwords_required', [callback] )

@param bool $error will be true when the required password field on the checkout form is empty, false otherwise.

Description

filters the form validation of the password field on the checkout form.

This filter should return true to cause an error to occur, and false to prevent an error.

Example

// register filter callback
add_filter('shopp_passwords_required', 'shopp_passwords_required_fltr');

// create filter function
function shopp_passwords_required_fltr( $error ) {
    // force no errors on password field validation
    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