shopp_billing_cardexpires_month_required

filters the test for an empty billing card month field.

add_filter( 'shopp_billing_cardexpires_month_required', [callback] )

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

Description

filters the test for an empty billing card month 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_month_required', 'validate_billing_card_month');

// create filter function
function validate_billing_card_month( $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