Automattic\WooCommerce\Admin\API
Plugins::get_item_schema()
Get the schema, conforming to JSON Schema.
Метод класса: Plugins{}
Хуков нет.
Возвращает
Массив
.
Использование
$Plugins = new Plugins(); $Plugins->get_item_schema();
Код Plugins::get_item_schema() Plugins::get item schema WC 9.5.1
public function get_item_schema() { $schema = array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'plugins', 'type' => 'object', 'properties' => array( 'slug' => array( 'description' => __( 'Plugin slug.', 'woocommerce' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'name' => array( 'description' => __( 'Plugin name.', 'woocommerce' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'status' => array( 'description' => __( 'Plugin status.', 'woocommerce' ), 'type' => 'string', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), ), ); return $this->add_additional_fields_schema( $schema ); }