WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Blocks\StoreApi\Schemas

ShippingAddressSchema::get_properties() public WC 1.0

Term properties.

{} Это метод класса: ShippingAddressSchema{}

Хуков нет.

Возвращает

Массив.

Использование

$ShippingAddressSchema = new ShippingAddressSchema();
$ShippingAddressSchema->get_properties();

Код ShippingAddressSchema::get_properties() WC 4.7.0

<?php
public function get_properties() {
	return [
		'first_name' => [
			'description' => __( 'First name', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
		],
		'last_name'  => [
			'description' => __( 'Last name', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
		],
		'company'    => [
			'description' => __( 'Company', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
		],
		'address_1'  => [
			'description' => __( 'Address', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
		],
		'address_2'  => [
			'description' => __( 'Apartment, suite, etc.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
		],
		'city'       => [
			'description' => __( 'City', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
		],
		'state'      => [
			'description' => __( 'State/County code, or name of the state, county, province, or district.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
		],
		'postcode'   => [
			'description' => __( 'Postal code', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
		],
		'country'    => [
			'description' => __( 'Country/Region code in ISO 3166-1 alpha-2 format.', 'woocommerce' ),
			'type'        => 'string',
			'context'     => [ 'view', 'edit' ],
		],
	];
}