Automattic\WooCommerce\Admin\Features\Blueprint\Steps
SetWCShipping::prepare_json_array()
Prepare the JSON array for the step.
Метод класса: SetWCShipping{}
Хуков нет.
Возвращает
Массив
. The JSON array.
Использование
$SetWCShipping = new SetWCShipping(); $SetWCShipping->prepare_json_array(): array;
Код SetWCShipping::prepare_json_array() SetWCShipping::prepare json array WC 9.7.1
public function prepare_json_array(): array { return array( 'step' => static::get_step_name(), 'values' => array( 'shipping_methods' => $this->methods, 'shipping_locations' => $this->locations, 'shipping_zones' => $this->zones, 'terms' => $this->terms, 'classes' => $this->classes, 'local_pickup' => $this->local_pickup, ), ); }