autoship_no_payment_method_notice

(templates > scheduled-orders > order-payment-method-summary-template.php) Allows you to customize the message displayed to the customer when payment method is currently empty for the associated Scheduled Order. The filter takes the 1. notification to be displayed and the 2. associated scheduled order as parameters.

Example

// Customize notice displayed when customer has no valid payment method
function xx_custom_no_payment_method_notice ($notice, $scheduled_order){
    return '<h6 class="notice-red">You have no Payment Method on file, please add one in My Account > Payment Methods</h6>';
}
add_filter('autoship_no_payment_method_notice', 'xx_custom_no_payment_method_notice', 10, 2);