WP_REST_Abilities_V1_Run_Controller::get_run_schema
Retrieves the schema for ability execution endpoint.
Method of the class: WP_REST_Abilities_V1_Run_Controller{}
No Hooks.
Returns
Array
Usage
$WP_REST_Abilities_V1_Run_Controller = new WP_REST_Abilities_V1_Run_Controller(); $WP_REST_Abilities_V1_Run_Controller->get_run_schema(): array;
Changelog
| Since 6.9.0 | Introduced. |
WP_REST_Abilities_V1_Run_Controller::get_run_schema() WP REST Abilities V1 Run Controller::get run schema code 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,
),
),
);
}