Problem to add new tab

  • Member
    bernart81
    May 15, 2018 at 4:26 am #4688

    Hi,
    I am trying to add a new tab following documentation, first I installed Woocommerce Product Tabs plugin, after I created tab and add it the text but it doesnt display in tour page. Also I made second way but it happens same.
    I only get it pasting a code that I saw in support but it show atributes destination and months
    add_filter( ‘tour_booking_default_product_tabs’, ‘custom_tour_booking_default_product_tabs’, 98 );
    function custom_tour_booking_default_product_tabs( $tabs ) {
    global $product;
    if ( $product && ( $product->has_attributes() || apply_filters( ‘wc_product_enable_dimensions_display’, $product->has_weight() || $product->has_dimensions() ) ) ) {
    $tabs[‘additional_information’] = array(
    ‘title’ => __( ‘Additional information’, ‘woocommerce’ ),
    ‘priority’ => 20,
    ‘callback’ => ‘woocommerce_product_additional_information_tab’,
    );
    }
    return $tabs;
    }

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.