WooLayout 1.0.3 has 17 actions and 21 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WooLayout fires an action
add_action( 'woocommerce_after_single_variation', function() {
// Your code runs here.
}, 10, 1 );
// Change a value WooLayout is about to use
add_filter( 'woocommerce_product_tabs', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * woocommerce_after_single_variation Hook. */ do_action( 'woocommerce_after_single_variation' ); -
/** * woocommerce_before_single_variation Hook. */ do_action( 'woocommerce_before_single_variation' ); -
/** * woocommerce_single_variation hook. Used to output the cart button and * placeholder for variation data. */ do_action( 'woocommerce_single_variation' ); -
/** * Filter tabs and allow third parties to add their own */ apply_filters( 'woocommerce_product_tabs', array() ); -
do_action( 'woocommerce_after_add_to_cart_button' ); -
do_action( 'woocommerce_before_add_to_cart_button' ); -
do_action( 'woocommerce_after_add_to_cart_form' ); -
do_action( 'woocommerce_before_add_to_cart_form' ); -
apply_filters( 'woocommerce_sale_flash', '<span class="onsale">' . __( 'Sale!', 'woocommerce' ) . '</span>', $post, $product ); -
apply_filters( 'woocommerce_quantity_input_max', $product->backorders_allowed() ? '' : $product->get_stock_quantity(), $product ); -
apply_filters( 'woocommerce_quantity_input_min', 0, $product ); -
apply_filters( 'woocommerce_stock_html', $availability_html, $availability['availability'], $product ); -
apply_filters( 'woocommerce_single_product_image_html', sprintf( '<img src="%s" alt="%s" />', wc_placeholder_img_src(), __( 'Placeholder', 'woocommerce' ) ), $post->ID ); -
do_action( 'woocommerce_after_variations_form' ); -
apply_filters( 'woocommerce_attribute', wpautop( wptexturize( implode( ', ', $values ) ) ), $attribute, $values ); -
do_action( 'woocommerce_before_variations_form' ); -
woocommerce_grouped_product_list_before_price
action Used by 3 plugins → Copy link Customise this hookdo_action( 'woocommerce_grouped_product_list_before_price', $product ); -
apply_filters( 'woocommerce_grouped_product_list_link', get_permalink(), $product_id ); -
apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#">' . __( 'Clear', 'woocommerce' ) . '</a>' ); -
apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ); -
apply_filters( 'single_product_small_thumbnail_size', 'shop_thumbnail' ); -
do_action( 'woocommerce_after_shop_loop_item' ); -
do_action( 'woocommerce_after_single_product' ); -
apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), esc_attr( $product->id ), esc_attr( $product->get_sku() ), esc_attr( isset( $class ) ? $class : 'button' ), esc_html( $product->add_to_cart_text() ) ), $product ); -
apply_filters( 'woocommerce_pagination_args', array( 'base' => esc_url_raw( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) ), 'format' => '', 'add_args' => false, 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $wp_query->max_num_pages, 'prev_text' => '←', 'next_text' => '→', 'type' => 'list', 'end_size' => 3, 'mid_size' => 3 ) ); -
apply_filters( "woocommerce_product_{$key}_tab_title", $tab['title'], $key ); -
woocommerce_product_additional_information_heading
filter Used by 16 plugins → Copy link Customise this hookapply_filters( 'woocommerce_product_additional_information_heading', __( 'Additional Information', 'woocommerce' ) ); -
apply_filters( 'woocommerce_product_description_heading', __( 'Product Description', 'woocommerce' ) ); -
do_action( 'woocommerce_product_meta_end' ); -
do_action( 'woocommerce_product_meta_start' ); -
do_action( 'woocommerce_product_thumbnails' ); -
apply_filters( 'woocommerce_product_thumbnails_columns', 3 ); -
apply_filters( 'woocommerce_review_gravatar_size', '60' ); -
apply_filters( 'woocommerce_short_description', $post->post_excerpt ); -
woocommerce_single_product_image_thumbnail_html
filter Used by 65 plugins → Copy link Customise this hookapply_filters( 'woocommerce_single_product_image_thumbnail_html', sprintf( '<a href="%s" class="%s" title="%s" data-rel="prettyPhoto[product-gallery]">%s</a>', $image_link, $image_class, $image_title, $image ), $attachment_id, $post->ID, $image_class ); -
do_action( 'woolayout_single_product_summary' );
Generated from WooLayout's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: