woocommerce_before_widget_product_list

woocommerce_before_widget_product_list

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_before_widget_product_list') is found 3 times:

  • /includes/widgets/class-wc-widget-products.php line 201
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    $products = $this->get_products( $args, $instance );
    if ( $products && $products->have_posts() ) {
        $this->widget_start( $args, $instance );
     
        echo wp_kses_post( apply_filters( 'woocommerce_before_widget_product_list', '<ul class="product_list_widget">' ) );
     
        $template_args = array(
            'widget_id'   => isset( $args['widget_id'] ) ? $args['widget_id'] : $this->widget_id,
            'show_rating' => true,
        );
  • /includes/widgets/class-wc-widget-recently-viewed.php line 90
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    if ( $r->have_posts() ) {
     
        $this->widget_start( $args, $instance );
     
        echo wp_kses_post( apply_filters( 'woocommerce_before_widget_product_list', '<ul class="product_list_widget">' ) );
     
        $template_args = array(
            'widget_id' => isset( $args['widget_id'] ) ? $args['widget_id'] : $this->widget_id,
        );
     
        while ( $r->have_posts() ) {
  • /includes/widgets/class-wc-widget-top-rated-products.php line 82
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    if ( $r->have_posts() ) {
     
        $this->widget_start( $args, $instance );
     
        echo wp_kses_post( apply_filters( 'woocommerce_before_widget_product_list', '<ul class="product_list_widget">' ) );
     
        $template_args = array(
            'widget_id'   => isset( $args['widget_id'] ) ? $args['widget_id'] : $this->widget_id,
            'show_rating' => true,
        );