=> 'https://rankmath.com/kb/url-inspection-api-integration/', 'pillar-content-internal-linking' => 'https://rankmath.com/kb/pillar-content-internal-linking/', 'breadcrumbs-install' => 'https://rankmath.com/kb/breadcrumbs/?#add-breadcrumbs-theme', 'change-seo-score-backlink' => 'https://rankmath.com/kb/filters-hooks-api-developer/?#change-seo-score-backlink', 'unable-to-encrypt' => 'https://rankmath.com/kb/fix-automatic-update-unavailable-for-this-plugin/?#unable-to-encrypt', 'google-verification-kb' => 'https://rankmath.com/kb/google-site-verification/', 'bing-verification-kb' => 'https://rankmath.com/kb/verify-your-site-with-bing-webmaster-tools/', 'baidu-verification-kb' => 'https://rankmath.com/kb/baidu-webmaster-tools-verification/', 'yandex-verification-kb' => 'https://rankmath.com/kb/verifying-your-domain-with-yandex/', 'norton-verification-kb' => 'https://rankmath.com/kb/verify-site-with-norton-safe-web/', 'pinterest-verification-kb' => 'https://rankmath.com/kb/pinterest-site-verification/', // SEO Analysis. 'analysis-site-tagline' => 'https://rankmath.com/kb/seo-analysis/?#site-tagline-test', 'analysis-blog-public' => 'https://rankmath.com/kb/seo-analysis/?#blog-public-test', 'analysis-permalink-structure' => 'https://rankmath.com/kb/seo-analysis/?#permalink-structure-test', 'analysis-focus-keywords' => 'https://rankmath.com/kb/seo-analysis/?#focus-keywords-test', 'analysis-post-titles' => 'https://rankmath.com/kb/seo-analysis/?#post-titles-missing-focus-keywords-test', 'analysis-search-console' => 'https://rankmath.com/kb/seo-analysis/?#search-console-test', 'analysis-sitemaps' => 'https://rankmath.com/kb/seo-analysis/?#sitemaps-test', 'analysis-auto-update' => 'https://rankmath.com/kb/seo-analysis/?#priority', // Social Media. 'yt-link' => 'http://youtube.com/rankmath', 'fb-group' => 'https://www.facebook.com/groups/rankmathseopluginwordpress/', // Other. 'google-article-schema' => 'https://developers.google.com/search/docs/data-types/article/?utm_campaign=Rank+Math', 'create-facebook-app' => 'https://www.youtube.com/watch?utm_source=Plugin&utm_campaign=WP&v=-XME8Q25omQ&feature=youtu.be', ]; /** * Echo the link. * * @param string $id Id of the link to get. * @param string $medium Medium of the link to get. */ public static function the( $id, $medium = '' ) { echo self::get( $id, $medium ); // phpcs:ignore } /** * Return the link. * * @param string $id Id of the link to get. * @param string $medium Medium of the link to get. * @return string */ public static function get( $id, $medium = '' ) { $links = self::get_links(); $url = isset( $links[ $id ] ) ? $links[ $id ] : '#'; if ( empty( $medium ) ) { return $url; } return add_query_arg( [ 'utm_source' => 'Plugin', 'utm_medium' => rawurlencode( $medium ), 'utm_campaign' => 'WP', ], $url ); } /** * Get links. * * @return array */ public static function get_links() { return self::$links; } }