autoship_include_scheduled_orders_row_notice

Can be used to control if the orders-row-notice-template should be included by default to display the Notification for scheduled orders in the table on the Scheduled Orders screen. Takes a boolean (whether it should be included), the WooCommerce Customer Id and Autoship Customer Id as parameters.

Example

// disable Schedule Orders row notice for user 12345
function xx_disable_so_row_notice($display, $wc_id, $autoship){
    if( $wc_id == 12345){
        return false;
    }
}
add_filter('autoship_include_scheduled_orders_row_notice', 'xx_disable_so_row_notice', 10, 3);

Still need help? Contact Us Contact Us