- 05/10/2022
- Ghiduri Vizuale, Woocommerce, Wordpress
Acesta este un ghid vizual de action hooks pentru Woocommerce dedicat developerilor si nu numai. A fost conceput in ideea de a simplifica putin conceptul de action hooks si pentru o mai buna vizualizare a locatiilor acestora in pagina.Aceste action hoooks se pot modifica/inlatura in fisierul functions.php al temei existente.
woocommerce_before_main_content
Shop
woocommerce_archive_description
woocommerce_before_shop_loop
Arată 2 rezultate
woocommerce_before_shop_loop_item
woocommerce_before_shop_loop_item_title
woocommerce_shop_loop_item_title
Titlu Produs
woocommerce_after_shop_loop_item_title
100 lei
woocommerce_after_shop_loop_item
woocommerce_before_shop_loop_item
woocommerce_before_shop_loop_item_title
woocommerce_shop_loop_item_title
Titlu Produs
woocommerce_after_shop_loop_item_title
100 lei
woocommerce_after_shop_loop_item
woocommerce_after_shop_loop
woocommerce_after_main_content
Add_action-uri implicite pentru pagina de Shop / Arhiva de produse / Categorie de produse
// Aceste action-uri pot fi modificate / eliminate (unhooked)
// pentru eliminarea lor se foloseste functia remove_action in schimbul celei de add_action
add_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
add_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
add_action( 'woocommerce_archive_description', 'woocommerce_product_archive_description', 10 );
add_action( 'woocommerce_before_shop_loop', 'woocommerce_output_all_notices', 10 );
add_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
add_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 );
add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
add_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 );
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
add_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );
add_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );