Automattic\WooCommerce\Admin\API

Plugins::get_connect_schema()publicWC 1.0

Get the schema, conforming to JSON Schema.

Метод класса: Plugins{}

Хуков нет.

Возвращает

Массив.

Использование

$Plugins = new Plugins();
$Plugins->get_connect_schema();

Код Plugins::get_connect_schema() WC 8.7.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;
}