WP_REST_Abilities_V1_Run_Controller::get_run_schema
Retrieves the schema for ability execution endpoint.
Метод класса: WP_REST_Abilities_V1_Run_Controller{}
Хуков нет.
Возвращает
Массив<Строку,. mixed> Schema for the run endpoint.
Использование
$WP_REST_Abilities_V1_Run_Controller = new WP_REST_Abilities_V1_Run_Controller(); $WP_REST_Abilities_V1_Run_Controller->get_run_schema(): array;
Список изменений
| С версии 6.9.0 | Введена. |
Код WP_REST_Abilities_V1_Run_Controller::get_run_schema() WP REST Abilities V1 Run Controller::get run schema WP 6.9
public function get_run_schema(): array {
return array(
'$schema' => 'http://json-schema.org/draft-04/schema#',
'title' => 'ability-execution',
'type' => 'object',
'properties' => array(
'result' => array(
'description' => __( 'The result of the ability execution.' ),
'type' => array( 'integer', 'number', 'boolean', 'string', 'array', 'object', 'null' ),
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
),
);
}