Automattic\WooCommerce\Admin\RemoteInboxNotifications
SpecRunner::get_url()
Get the URL for an action.
Метод класса: SpecRunner{}
Хуков нет.
Возвращает
Строку
. The URL for the action.
Использование
$result = SpecRunner::get_url( $action );
- $action(объект) (обязательный)
- The action.
Код SpecRunner::get_url() SpecRunner::get url WC 9.5.1
private static function get_url( $action ) { if ( ! isset( $action->url ) ) { return ''; } if ( isset( $action->url_is_admin_query ) && $action->url_is_admin_query ) { if ( strpos( $action->url, '&path' ) === 0 ) { return wc_admin_url( $action->url ); } return admin_url( $action->url ); } return $action->url; }