woocommerce_backordered_item_meta_name

woocommerce_backordered_item_meta_name

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_backordered_item_meta_name') is found 2 times:

  • /includes/class-wc-order-item-product.php line 228
    	 */
    	public function set_backorder_meta() {
    		$product = $this->get_product();
    		if ( $product && $product->backorders_require_notification() && $product->is_on_backorder( $this->get_quantity() ) ) {
    			$this->add_meta_data( apply_filters( 'woocommerce_backordered_item_meta_name', __( 'Backordered', 'woocommerce' ), $this ), $this->get_quantity() - max( 0, $product->get_stock_quantity() ), true );
    		}
    	}
    
    	/*
    	|--------------------------------------------------------------------------
    	| Getters
    
  • /includes/legacy/abstract-wc-legacy-order.php line 164
     
    		// Handle qty if set.
    		if ( isset( $args['qty'] ) ) {
    			if ( $product->backorders_require_notification() && $product->is_on_backorder( $args['qty'] ) ) {
    				$item->add_meta_data( apply_filters( 'woocommerce_backordered_item_meta_name', __( 'Backordered', 'woocommerce' ), $item ), $args['qty'] - max( 0, $product->get_stock_quantity() ), true );
    			}
    			$args['subtotal'] = $args['subtotal'] ? $args['subtotal'] : wc_get_price_excluding_tax( $product, array( 'qty' => $args['qty'] ) );
    			$args['total']	= $args['total'] ? $args['total'] : wc_get_price_excluding_tax( $product, array( 'qty' => $args['qty'] ) );
    		}
    
    		$item->set_order_id( $this->get_id() );