Automattic\WooCommerce\Admin\RemoteInboxNotifications
SpecRunner::get_url()
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() SpecRunner::get url WC 6.6.1
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; }