autosh​ip_product_autos​hip_tab_content (function)

(src/product-page.php) Outputs the Autoship data tab in the WooCommerce Edit Product Screen. 

Function

/**
* Outputs the Autoship data tab in the WooCommerce Edit Product Screen
* @see woocommerce_product_data_panels
*/
function autoship_product_autoship_tab_content() {

  global $post;

  $_product = wc_get_product($post->ID);
  $active = 'yes' == autoship_sync_active_enabled( $_product );

  $tab_classes = apply_filters( 'autoship_product_custom_fields_options_tab_clases', 'show_if_simple show_if_variable', $_product );

	?>
	<div id="autoship_product_data" class="panel woocommerce_options_panel <?php echo $active ? 'autoship-active' : '';?>">
		<div class="options_group <?php echo $tab_classes; ?>">
			<?php do_action( 'woocommerce_product_options_autoship_product_data' ); ?>
		</div><!-- .options_group -->
	</div><!-- #autoship_product_data -->
	<?php
}

Still need help? Contact Us Contact Us