woocommerce_before_widget_product_list
Usage
add_filter( 'woocommerce_before_widget_product_list', 'wp_kama_woocommerce_before_widget_product_list_filter' ); /** * Function for `woocommerce_before_widget_product_list` filter-hook. * * @param $html * * @return */ function wp_kama_woocommerce_before_widget_product_list_filter( $html ){ // filter... return $html; }
- $html
- -
Where the hook is called
woocommerce_before_widget_product_list
woocommerce_before_widget_product_list
woocommerce_before_widget_product_list
woocommerce/includes/widgets/class-wc-widget-top-rated-products.php 82
echo wp_kses_post( apply_filters( 'woocommerce_before_widget_product_list', '<ul class="product_list_widget">' ) );
woocommerce/includes/widgets/class-wc-widget-products.php 199
echo wp_kses_post( apply_filters( 'woocommerce_before_widget_product_list', '<ul class="product_list_widget">' ) );
woocommerce/includes/widgets/class-wc-widget-recently-viewed.php 88
echo wp_kses_post( apply_filters( 'woocommerce_before_widget_product_list', '<ul class="product_list_widget">' ) );