Automattic\WooCommerce\Blocks\Shipping
ShippingController::register_local_pickup()
Registers the Local Pickup shipping method used by the Checkout Block.
Метод класса: ShippingController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ShippingController = new ShippingController(); $ShippingController->register_local_pickup();
Код ShippingController::register_local_pickup() ShippingController::register local pickup WC 9.2.3
public function register_local_pickup() { if ( CartCheckoutUtils::is_checkout_block_default() ) { wc()->shipping->register_shipping_method( new PickupLocation() ); } }