Automattic\WooCommerce\Admin\API
OnboardingPlugins::get_install_async_schema
JSON Schema for both install-async and scheduled-installs endpoints.
Method of the class: OnboardingPlugins{}
No Hooks.
Returns
Array.
Usage
$OnboardingPlugins = new OnboardingPlugins(); $OnboardingPlugins->get_install_async_schema();
OnboardingPlugins::get_install_async_schema() OnboardingPlugins::get install async schema code WC 10.9.4
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' ),
),
),
),
);
}