Code entry in functions.php

  • Member
    zaphertravel
    January 15, 2019 at 10:25 pm #7454

    Good morning, please I need help to add this code and this way I can edit the buttons that appear in the tours.

    add_filter (‘woocommerce_product_tabs’, ‘remove_tour_booking_tabs’, 98);
    add_filter (‘tour_booking_default_product_tabs’, ‘remove_tour_booking_tabs’, 98);
    función remove_tour_booking_tabs ($ tabs) {
    // unset ($ tabs [‘description’]); // Eliminar la pestaña de descripción
    // desarmar ($ tabs [‘itinerary_tab’]); // Eliminar la pestaña del itinerario
    // desarmar ($ tabs [‘location_tab’]); // Eliminar la pestaña de ubicación sin establecer
    ($ tabs [‘reviews’]); // Eliminar la pestaña Revisiones
    devolver $ tabs;
    }

    This is the error that I get when I enter the code in functions.php

    View post on imgur.com

    Thank you

    Sorry, this forum is for verified users only. Please Login

Comments are closed.