WC_API_Server::get_raw_data()publicWC 2.1

Retrieve the raw request entity (body)

Method of the class: WC_API_Server{}

No Hooks.

Return

String.

Usage

$WC_API_Server = new WC_API_Server();
$WC_API_Server->get_raw_data();

Changelog

Since 2.1 Introduced.

WC_API_Server::get_raw_data() code WC 8.9.0

public function get_raw_data() {
	return file_get_contents( 'php://input' );
}