autoship_before_schedule_options_variable (action)

(templates/product/schedule-options-variable.php) The hook allows developers to insert additional radio options before the default options for Variable Products on the product page. Takes $product, $skin, & Autoship option default choice ($default_check) as its parameters.

Code

    <?php do_action('autoship_before_schedule_options_variable', $product, $skin, $default_check ); ?>

Example

function insert_before_radio() {
    echo '<input type="radio" name="before"> Before Example<br>';
}
add_action('autoship_before_schedule_options_variable', 'insert_before_radio', 10);

Still need help? Contact Us Contact Us