Automattic\WooCommerce\Admin\API
Plugins::get_connect_schema
Get the schema, conforming to JSON Schema.
Method of the class: Plugins{}
No Hooks.
Returns
Array.
Usage
$Plugins = new Plugins(); $Plugins->get_connect_schema();
Plugins::get_connect_schema() Plugins::get connect schema code WC 10.4.3
public function get_connect_schema() {
$schema = $this->get_item_schema();
unset( $schema['properties']['status'] );
$schema['properties']['connectAction'] = array(
'description' => __( 'Action that should be completed to connect Jetpack.', 'woocommerce' ),
'type' => 'string',
'context' => array( 'view', 'edit' ),
'readonly' => true,
);
return $schema;
}