wc_autoship_discount (filter) DEPRECATED
Implement a discount for Autoship Schedules.
Example
<?php /** * @param float $discounts * @param int $schedule_id * @return float */ function wc_autoship_discount_example( $discounts, $schedule_id ) { // Add $2 to a discount for a schedule $discounts += 2.00; return $discounts; } add_filter( 'wc_autoship_discount', 'wc_autoship_discount_example', 10, 2 );