Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Código da videoaula Como adicionar uma nova aba na página de produto do WooCommerce - WordPress -
add_filter('woocommerce_product_tabs', 'custom_woocommerce_tab_video');
function custom_woocommerce_tab_video($tabs){
$tabs['tab_video'] = array(
'title' => 'Video',
'priority' => 99,
'callback' => 'custom_woocommerce_video'
return $tabs;
function custom_woocommerce_video(){
global $post;
echo get_post_meta($post->ID, 'woocommerce_video', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.