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.9.8.1

apply_filters('woocommerce_backordered_item_meta_name') is found 2 times:

  • /includes/class-wc-order-item-product.php line 232
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    */
    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 167
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    // 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() );