autoship_product_autoship_tab (function)
( src/product-page.php) Used to add the Autoship tab to the WooCommerce product page for simple and variable products. It takes the woocommerce_product_data_tabs array ($tabs) as its parameter.
Function
/**
* Adds the Autoship Product Tab for Simple and Variable Products
* @see woocommerce_product_data_tabs
*/
function autoship_product_autoship_tab( $tabs ) {
$tabs['autoship'] = array(
'label' => __( 'Autoship', 'autoship' ),
'target' => 'autoship_product_data',
'class' => array( 'show_if_simple', 'show_if_variable' )
);
return $tabs;
}