Automattic\WooCommerce\Internal\ReceiptRendering

ReceiptRenderingRestController::get_rest_api_namespaceprotectedWC 1.0

Get the WooCommerce REST API namespace for the class.

Method of the class: ReceiptRenderingRestController{}

No Hooks.

Returns

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_rest_api_namespace(): string;

ReceiptRenderingRestController::get_rest_api_namespace() code WC 9.8.5

protected function get_rest_api_namespace(): string {
	return 'order-receipts';
}