WP_REST_Request::set_body

Advertisement

Summery Summery

Sets body content.

Syntax Syntax

WP_REST_Request::set_body( string $data )

Parameters Parameters

$data

(string) (Required) Binary data from the request body.

Source Source

File: wp-includes/rest-api/class-wp-rest-request.php

	 *
	 * @return string Binary data from the request body.
	 */
	public function get_body() {
		return $this->body;
	}

	/**

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.