Api_Server::create_payload( mixed $body, mixed $code )

create_payload


Parameters Parameters

$body

(Required)

$code

(Required)


Top ↑

Return Return

(void)


Source Source

File: src/core/classes/class-api-server.php

	public function create_payload( $body, $code ) {

		$payload = array(
			'statusCode' => $code,
			'data'       => $body,
		);

		return $payload;
	}