shopp_billing_card_expired

filters the validation test on the card expiration date.

add_filter( 'shopp_billing_card_expired', [callback] )

@param bool $error true if the billing card date has expired, otherwise false.

Description

filters the validation test on the card expiration date.

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_card_expired', 'card_expiration_filter');

// create filter function
function card_expiration_filter( $error ) {
    // prevent card expiration error
    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