Automattic\WooCommerce\Blocks\Shipping
ShippingController::register_local_pickup_method()
Declares the Pickup Location shipping method as a Local Pickup method for WooCommerce.
Method of the class: ShippingController{}
No Hooks.
Return
Array
.
Usage
$ShippingController = new ShippingController(); $ShippingController->register_local_pickup_method( $methods );
- $methods(array) (required)
- Shipping method ids.
ShippingController::register_local_pickup_method() ShippingController::register local pickup method code WC 9.2.3
public function register_local_pickup_method( $methods ) { $methods[] = 'pickup_location'; return $methods; }