WP_REST_Abilities_V1_Run_Controller::get_run_argspublicWP 6.9.0

Retrieves the arguments for ability execution endpoint.

Метод класса: WP_REST_Abilities_V1_Run_Controller{}

Хуков нет.

Возвращает

Массив<Строку,. mixed> Arguments 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_args(): array;

Список изменений

С версии 6.9.0 Введена.

Код WP_REST_Abilities_V1_Run_Controller::get_run_args() WP 7.0.4

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,
		),
	);
}