Automattic\WooCommerce\Internal\RestApi\Routes\V4\Orders

ActionController::get_endpoint_args_for_actionspublicWC 1.0

Get endpoint args for the actions.

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

Хуков нет.

Возвращает

Массив.

Использование

$ActionController = new ActionController();
$ActionController->get_endpoint_args_for_actions(): array;

Код ActionController::get_endpoint_args_for_actions() WC 10.5.2

public function get_endpoint_args_for_actions(): array {
	return array(
		'payment_complete'           => array(
			'description' => __( 'Marks the order as paid. Updates the order status and reduces line item stock if necessary.', 'woocommerce' ),
			'type'        => 'boolean',
			'default'     => false,
		),
		'reset_download_permissions' => array(
			'description' => __( 'Resets any download permissions linked to the order.', 'woocommerce' ),
			'type'        => 'boolean',
			'default'     => false,
		),
	);
}