Automattic\WooCommerce\Admin\Features\Blueprint
RestApi::get_import_allowed_schema
Get the schema for the import-allowed endpoint.
Method of the class: RestApi{}
No Hooks.
Returns
Array
.
Usage
$RestApi = new RestApi(); $RestApi->get_import_allowed_schema();
RestApi::get_import_allowed_schema() RestApi::get import allowed schema code WC 9.9.5
public function get_import_allowed_schema() { return array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'blueprint-import-allowed', 'type' => 'object', 'properties' => array( 'import_allowed' => array( 'description' => __( 'Whether blueprint imports are currently allowed', 'woocommerce' ), 'type' => 'boolean', 'context' => array( 'view' ), 'readonly' => true, ), ), ); }