WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

SpecRunner::get_url() private WC 1.0

Get the URL for an action.

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

No Hooks.

Return

String. The URL for the action.

Usage

$result = SpecRunner::get_url( $action );
$action(object) (required)
The action.

Code of SpecRunner::get_url() WC 5.3.0

<?php
private static function get_url( $action ) {
	if ( ! isset( $action->url ) ) {
		return '';
	}

	if ( isset( $action->url_is_admin_query ) && $action->url_is_admin_query ) {
		return wc_admin_url( $action->url );
	}

	return $action->url;
}