Automattic\WooCommerce\Admin\API
Plugins::get_connect_schema()
Get the schema, conforming to JSON Schema.
Метод класса: Plugins{}
Хуков нет.
Возвращает
Массив
.
Использование
$Plugins = new Plugins(); $Plugins->get_connect_schema();
Код Plugins::get_connect_schema() Plugins::get connect schema WC 7.5.1
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; }