WP_REST_Abilities_V1_Run_Controller::get_run_argspublicWP 6.9.0

Retrieves the arguments for ability execution endpoint.

Method of the class: WP_REST_Abilities_V1_Run_Controller{}

No Hooks.

Returns

Array. mixed> Arguments for the run endpoint.

Usage

$WP_REST_Abilities_V1_Run_Controller = new WP_REST_Abilities_V1_Run_Controller();
$WP_REST_Abilities_V1_Run_Controller->get_run_args(): array;

Changelog

Since 6.9.0 Introduced.

WP_REST_Abilities_V1_Run_Controller::get_run_args() code WP 6.9

public function get_run_args(): array {
	return array(
		'input' => array(
			'description' => __( 'Input parameters for the ability execution.' ),
			'type'        => array( 'integer', 'number', 'boolean', 'string', 'array', 'object', 'null' ),
			'default'     => null,
		),
	);
}