autoship_dissable_schedule_order_options_default

(src > product-options.php) You can use to disable or enable to the new  Disable Autoship Options for this variation option by default. The filter takes the current value and the product variation id.

Example

function xx_disable_scheduled_order_option_default ($default, $variation_id) {
    return $variation_id == 2718 ? 'yes' : $default ;
}
add_filter('autoship_dissable_schedule_order_options_default', 'xx_disable_scheduled_order_option_default', 10, 2);

autoship_dissable_schedule_order_options_default

Still need help? Contact Us Contact Us