shopp_firstname_required

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

add_filter( 'shopp_firstname_required', [callback] )

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

Description

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

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

Example

// register filter callback
add_filter('shopp_firstname_required', 'shopp_firstname_required_filter');

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