autoship_enable_lock_duration_restriction (filter)

(src/schedule-orders.php) Can be used to apply or remove the lock duration (display) restrictions. The filter value is true by default.


Note: This will NOT override QPilot validation restrictions for Updating Scheduled Orders

Example

// override lock restriction

function xx_override_lock_restriction($current_value){

return $current_value = false;

}

add_filter('autoship_enable_lock_duration_restriction', 'xx_override_lock_restriction', 10, 1);


lock duration restriction