Automattic\WooCommerce\Admin\API
Plugins::get_connect_schema()
Get the schema, conforming to JSON Schema.
Method of the class: Plugins{}
No Hooks.
Return
Array
.
Usage
$Plugins = new Plugins(); $Plugins->get_connect_schema();
Plugins::get_connect_schema() Plugins::get connect schema code WC 9.6.0
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; }