autoship_before_cart_schedule_options (action)

(templates/cart/schedule-options.php) Allows developers to add additional radio options before the default options on the cart page. Takes $product, $frequency_type, $frequency, $next_occurrence, $cart_item, & $autoship_selected as its parameters.

Code

  <?php do_action('autoship_before_cart_schedule_options', $product, $frequency_type, $frequency, $next_occurrence, $cart_item, $autoship_selected ); ?>
Example
function insert_before_radio() {
    echo '<input type="radio" name="before"> Before Example<br>'
}
add_action('autoship_before_cart_schedule_options', 'insert_before_radio', 10);

Still need help? Contact Us Contact Us