hide(); } /** * @inheritDoc */ public function getText(): string { return __('Unable to track traffic on your site', 'metricool'); } /** * @inheritDoc */ public function getAction(): array { // todo - fetch from settings $queryArgs = array_filter([ 'blogId' => (defined('METRICOOL_BLOG_ID') ? METRICOOL_BLOG_ID : ''), 'userId' => (defined('METRICOOL_USER_ID') ? METRICOOL_USER_ID : ''), ]); $link = add_query_arg($queryArgs, 'https://app.metricool.com/evolution/web'); return [ 'text' => __('Validate connection', 'metricool'), 'link' => $link, 'target' => '_blank', ]; } }