shopp_billing_cardexpires_year_required

filters the test for an empty billing card year field.

add_filter( 'shopp_billing_cardexpires_year_required', [callback] )

@param bool $error true when the billing card expiration year field is empty, and an error message is required. false when no error is needed.

Description

filters the test for an empty billing card year field.

This filter should return true to cause an error message on this field, and false to prevent an error.

Example

// register filter callback
add_filter('shopp_billing_cardexpires_year_required', 'validate_billing_card_year');

// create filter function
function validate_billing_card_year( $error ) {
    // always prevent this error from being displayed
    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