Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function set_line_items() {
- foreach ( $this->cart->get_cart() as $cart_item ) {
- do_action( 'woocommerce/cart_loop/start', $cart_item );
- $new_object_cart_item = new CartLineItem( $cart_item, $this->config );
- $this->line_items[] = apply_filters( $this->get_filter_name( 'line_items' ), $new_object_cart_item, $this->cart );
- do_action( 'woocommerce/cart_loop/end', $cart_item );
- }
- $this->line_items = apply_filters( $this->get_filter_name( __FUNCTION__ ), $this->line_items, $this->cart );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement