Automattic\WooCommerce\Blocks\Shipping
PickupLocation::is_available()
See if the method is available.
Метод класса: PickupLocation{}
Хуки из метода
Возвращает
true|false
.
Использование
$PickupLocation = new PickupLocation(); $PickupLocation->is_available( $package );
- $package(массив) (обязательный)
- Package information.
Код PickupLocation::is_available() PickupLocation::is available WC 9.2.3
public function is_available( $package ) { // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', 'yes' === $this->enabled, $package, $this ); }