L
L
Levelse2017-10-06 14:01:18
WordPress
Levelse, 2017-10-06 14:01:18

How to separate Woocommerce hooks?

Is it possible to output hooks separately from each other? For example:
1. woocommerce_template_single_title
2. woocommerce_output_product_data_tabs
3. woocommerce_template_single_excerpt
4. woocommerce_upsell_display
In fact, in the functions.php file we set the order, but only inside the action, and take into account that points 1 and 3 are in woocommerce_single_product_summary, and 2 and 4 in woocommerce_after_single order cannot be set.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zorca, 2017-10-06
@zorca

You can rewrite the Wordpress templates in your theme and disassemble each action into its components, completely rewriting all the output logic. Look at the example , here I use some of the actions as a whole, but I don’t use some of the actions, having parsed them into the components I need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question