Automattic\WooCommerce\Admin\API
OnboardingPlugins::get_install_async_schema()
JSON Schema for both install-async and scheduled-installs endpoints.
Метод класса: OnboardingPlugins{}
Хуков нет.
Возвращает
Массив
.
Использование
$OnboardingPlugins = new OnboardingPlugins(); $OnboardingPlugins->get_install_async_schema();
Код OnboardingPlugins::get_install_async_schema() OnboardingPlugins::get install async schema WC 9.2.3
public function get_install_async_schema() { return array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'Install Async Schema', 'type' => 'object', 'properties' => array( 'type' => 'object', 'properties' => array( 'job_id' => 'integer', 'status' => array( 'type' => 'string', 'enum' => array( 'pending', 'complete', 'failed' ), ), ), ), ); }