shopp_lastname_required

filters the validation test result for missing lastname information on the checkout form.

add_filter( 'shopp_lastname_required', [callback] )

@param bool $error true if an error will occur due to missing lastname on the checkout form, false otherwise.

Description

filters the validation test result for missing lastname information on the checkout form.

The filter should return true to generate an error message on the lastname field, and false will prevent an error.

Example

// register filter callback
add_filter('shopp_lastname_required', 'shopp_lastname_required_filter');

// create filter function
function shopp_lastname_required_filter( $error ) {
    // always prevent error on the lastname
    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