B
B
Bogdan2018-08-09 13:52:08
WordPress
Bogdan, 2018-08-09 13:52:08

How to remove the attribute in woowcomerce?

Hello! And do not tell me, I use woowcomerce, and through the
woocommerce_product_additional_information hook I add my custom field, and I need to somehow remove the field that is there "Product Type", do not tell me how to do it right? Thank you.
5b6c1cd521a10929257964.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pychev Anatoly, 2018-08-09
@bogdan_uman

The work is described here,
and an example of switching the callback function is described here . According to this example, the content of the $tabs argument looks like this

spoiler
Array
(
    [reviews] => Array
        (
            [title] => Отзывы  (0)
            [priority] => 30
            [callback] => comments_template
        )

    [test_tab] => Array
        (
            [title] => Дополнительная информация1
            [priority] => 50
            [callback] => woo_new_product_tab_content
        )

)

It turns out that you just need to reassign the calback function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question