WordPress at Your Fingertips
function is not described

WC_REST_Controller::get_normalized_rest_base() protected WC 1.0

Get normalized rest base.

{} It's a method of the class: WC_REST_Controller{}

No Hooks.

Return

String.

Usage

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

Code of WC_REST_Controller::get_normalized_rest_base() WC 5.9.0

protected function get_normalized_rest_base() {
	return preg_replace( '/\(.*\)\//i', '', $this->rest_base );
}