Skip to content

Instantly share code, notes, and snippets.

@wickywills
Created June 27, 2018 14:01
Show Gist options
  • Save wickywills/57b759cf0a37fa386f73809c01448643 to your computer and use it in GitHub Desktop.
Save wickywills/57b759cf0a37fa386f73809c01448643 to your computer and use it in GitHub Desktop.
```
add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' );
function woo_new_product_tab( $tabs ) {
$tabs['test_tab'] = array(
'title' => __( 'New Product Tab', 'woocommerce' ),
'priority' => 50,
'callback' => 'woo_new_product_tab_content'
);
return $tabs;
}
function woo_datasheets_tab() {
if( get_field('datasheetsrepeater') ):
while( have_rows('datasheetsrepeater') ): the_row();
echo "test";
endwhile;
endif;
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment