Automattic\WooCommerce\Blocks\Shipping
ShippingController::force_shipping_enabled()
Inject collection details onto the order received page.
Метод класса: ShippingController{}
Хуков нет.
Возвращает
Строку
.
Использование
$ShippingController = new ShippingController(); $ShippingController->show_local_pickup_details( $return_value, $order );
- $return_value(строка) (обязательный)
- Return value.
- $order(\WC_Order) (обязательный)
- Order object.
Код ShippingController::force_shipping_enabled() ShippingController::force shipping enabled WC 9.3.3
public function show_local_pickup_details( $return_value, $order ) { // Confirm order is valid before proceeding further. if ( ! $order instanceof \WC_Order ) { return $return_value; }