Advertisement
nshelper

Untitled

Apr 16th, 2024 (edited)
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1.     public function set_line_items() {
  2.         foreach ( $this->cart->get_cart() as $cart_item ) {
  3.            
  4.             do_action( 'woocommerce/cart_loop/start', $cart_item );
  5.            
  6.             $new_object_cart_item          = new CartLineItem( $cart_item, $this->config );
  7.             $this->line_items[] = apply_filters( $this->get_filter_name( 'line_items' ), $new_object_cart_item, $this->cart );
  8.            
  9.             do_action( 'woocommerce/cart_loop/end', $cart_item );
  10.         }
  11.  
  12.         $this->line_items = apply_filters( $this->get_filter_name( __FUNCTION__ ), $this->line_items, $this->cart );
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement