Automattic\WooCommerce\Blueprint\Steps
ActivatePlugin::get_schema
Returns the schema for the JSON representation of this step.
Метод класса: ActivatePlugin{}
Хуков нет.
Возвращает
Массив. The schema array.
Использование
$result = ActivatePlugin::get_schema( $version ): array;
- $version(int)
- The version of the schema to return.
По умолчанию:1
Код ActivatePlugin::get_schema() ActivatePlugin::get schema WC 10.7.0
public static function get_schema( int $version = 1 ): array {
return array(
'type' => 'object',
'properties' => array(
'step' => array(
'type' => 'string',
'enum' => array( static::get_step_name() ),
),
'pluginName' => array(
'type' => 'string',
),
'pluginPath' => array(
'type' => 'string',
),
),
'required' => array( 'step', 'pluginPath' ),
);
}