Automattic\WooCommerce\Internal\Admin
SiteHealth::get_async_test_route
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() 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 );
}