Created
October 17, 2013 07:39
-
-
Save corsonr/7020691 to your computer and use it in GitHub Desktop.
Mastering WooCommerce Products Custom Fields 13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_product_write_panel_tabs', 'woo_add_custom_admin_product_tab' ); | |
function woo_add_custom_admin_product_tab() { | |
?> | |
<li class="custom_tab"><a href="#custom_tab_data"><?php _e('My Custom Tab', 'woocommerce'); ?></a></li> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's perfect! How would I add fields to this custom tab? I know how to add custom fields to the "general" tab:
But what should I replace woocommerce_product_options_general_product_data with?