Automattic\WooCommerce\Internal\Admin

SiteHealth::get_async_test_route │ private │ WC 1.0

Get the REST API route segment for an asynchronous test.

Method of the class: SiteHealth{}

No Hooks.

Returns

string.

Usage

// private - for code of main (parent) class only
$result = $this->get_async_test_route( $test_id ): string;
$test_id(string) (required)
Site Health test ID.

SiteHealth::get_async_test_route() code WC 11.3.0

private function get_async_test_route( string $test_id ): string {
	return str_replace( '_', '-', $test_id );
}