WP_REST_Abilities_V1_Run_Controller::get_run_args │ public │ WP 6.9.0

Retrieves the arguments for ability execution endpoint.

Method of the class: WP_REST_Abilities_V1_Run_Controller{}

No Hooks.

Returns

array<string, 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 7.1.2

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,
			'sanitize_callback' => array( $this, 'sanitize_input_for_ability' ),
		),
	);
}