Woocommerce Action List

Template Hooks Actions HOOK FILE(S) get_product_search_form woocommerce-template.php woocommerce_.$product->product_type._add_to_cart woocommerce-template.php woocommerce_after_main_content archive-product.php, single-product.php woocommerce_after_shop_loop archive-product.php, loop-shop.php, woocommerce-template.php woocommerce_after_shop_loop_item content-product.php woocommerce_after_shop_loop_item_title content-product.php woocommerce_after_single_product content-single-product.php woocommerce_after_single_product_summary content-single-product.php woocommerce_after_subcategory content-product_cat.php woocommerce_after_subcategory_title content-product_cat.php woocommerce_archive_description archive-product.php, woocommerce-template.php woocommerce_before_main_content archive-product.php, single-product.php woocommerce_before_shop_loop archive-product.php, loop-shop.php, woocommerce-template.php woocommerce_before_shop_loop_item content-product.php woocommerce_before_shop_loop_item_title content-product.php woocommerce_before_single_product content-single-product.php woocommerce_before_single_product_summary content-single-product.php woocommerce_before_subcategory content-product_cat.php woocommerce_before_subcategory_title content-product_cat.php woocommerce_product_thumbnails product-image.php woocommerce_sidebar archive-product.php, single-product.php woocommerce_single_product_summary content-single-product.php Filters HOOK FILE(S) default_checkout_country woocommerce-template.php, woocommerce-template.php, woocommerce-template.php get_product_search_form woocommerce-template.php, woocommerce-template.php loop_shop_columns content-product.php, content-product_cat.php single_product_small_thumbnail_size product-thumbnails.php, woocommerce-template.php the_content order-details.php, email-order-items.php, woocommerce-template.php the_title woocommerce-template.php woocommerce_attribute product-attributes.php, product-attributes.php woocommerce_default_catalog_orderby woocommerce-template.php woocommerce_demo_store woocommerce-template.php woocommerce_form_field_.$args[type] woocommerce-template.php woocommerce_page_title woocommerce-template.php woocommerce_product_review_comment_form_args single-product-reviews.php woocommerce_product_subcategories_args woocommerce-template.php woocommerce_product_thumbnails_columns product-thumbnails.php woocommerce_quantity_input_args woocommerce-template.php woocommerce_subcategory_count_html content-product_cat.php Widget Hooks   Filters HOOK FILE(S) widget_title class-wc-widget-best-sellers.php, class-wc-widget-cart.php, class-wc-widget-featured-products.php, class-wc-widget-layered-nav-filters.php, class-wc-widget-layered-nav.php, class-wc-widget-login.php, class-wc-widget-login.php, class-wc-widget-onsale.php, class-wc-widget-price-filter.php, class-wc-widget-product-categories.php, class-wc-widget-product-search.php, class-wc-widget-product-tag-cloud.php, class-wc-widget-random-products.php, class-wc-widget-recent-products.php, class-wc-widget-recent-reviews.php, class-wc-widget-recently-viewed.php, class-wc-widget-top-rated-products.php woocommerce_product_categories_widget_args class-wc-widget-product-categories.php woocommerce_product_tag_cloud_widget_args class-wc-widget-product-tag-cloud.php Class Hooks   Actions HOOK FILE(S) woocommerce_product_set_stock_status abstract-wc-product.php Filters HOOK FILE(S) list_product_cats class-product-cat-dropdown-walker.php single_product_large_thumbnail_size class-wc-product-variable.php widget_title class-wc-widget-best-sellers.php, class-wc-widget-cart.php, class-wc-widget-featured-products.php, class-wc-widget-layered-nav-filters.php, class-wc-widget-layered-nav.php, class-wc-widget-login.php, class-wc-widget-login.php, class-wc-widget-onsale.php, class-wc-widget-price-filter.php, class-wc-widget-product-categories.php,...

0
0

Woocommerce Conditional Tags

Introduction The Conditional Tags of both WooCommerce and WordPress can be used in your Template files to change what content is displayed based on what conditions that page matches. For example, you might want to display a snippet of text above the shop page. With the is_shop() Conditional Tag you...

0
0

Disable Payment Method Based on Country Woocommerce PHP

// Disable gateway based on country function payment_gateway_disable_country( $available_gateways ) { global $woocommerce; if ( isset( $available_gateways['cod'] ) && $woocommerce->customer->get_country() <> 'IN' ) { unset( $available_gateways['cod'] ); } return $available_gateways; } add_filter( 'woocommerce_available_payment_gateways', 'payment_gateway_disable_country' ); ...

0
0