woocommerce_shipping_package_name

woocommerce_shipping_package_name

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_shipping_package_name') is found 1 times:

  • /includes/wc-cart-functions.php line 258
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
            'show_package_details'     => count( $packages ) > 1,
            'show_shipping_calculator' => is_cart() && apply_filters( 'woocommerce_shipping_show_shipping_calculator', $first, $i, $package ),
            'package_details'          => implode( ', ', $product_names ),
            /* translators: %d: shipping package number */
            'package_name'             => apply_filters( 'woocommerce_shipping_package_name', ( ( $i + 1 ) > 1 ) ? sprintf( _x( 'Shipping %d', 'shipping packages', 'woocommerce' ), ( $i + 1 ) ) : _x( 'Shipping', 'shipping packages', 'woocommerce' ), $i, $package ),
            'index'                    => $i,
            'chosen_method'            => $chosen_method,
            'formatted_destination'    => WC()->countries->get_formatted_address( $package['destination'], ', ' ),
            'has_calculated_shipping'  => WC()->customer->has_calculated_shipping(),
        )
    );