Automattic\WooCommerce\Admin\Features\OnboardingTasks

TaskList::get_json()publicWC 1.0

Get the list for use in JSON.

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

Хуков нет.

Возвращает

Массив.

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

$TaskList = new TaskList();
$TaskList->get_json();

Код TaskList::get_json() WC 6.4.1

public function get_json() {
	$this->possibly_track_completion();
	return array(
		'id'          => $this->get_list_id(),
		'title'       => $this->title,
		'isHidden'    => $this->is_hidden(),
		'isVisible'   => $this->is_visible(),
		'isComplete'  => $this->is_complete(),
		'tasks'       => array_map(
			function( $task ) {
				return $task->get_json();
			},
			$this->get_viewable_tasks()
		),
		'eventPrefix' => $this->prefix_event( '' ),
	);
}