Support » Plugin: WPeMatico RSS Feed Fetcher » support for google alerts rss feed

  • Resolved netrkx

    (@netrkx)


    How can I check for Google redirect url and pick the original post link. Something like this

    $protocol = $parsedLink[‘scheme’];
    if (strpos($protocol . “://www.google.com/url”, $link) == 0) {
    $query = $parsedLink[‘query’];
    $url_query = explode(“&”, $query);
    foreach ($url_query as $param) {
    if (strpos($param, ‘url=’) === 0) {
    $link = str_replace(“url=”, “”, $param);
    $link = urldecode($link);
    $parsedLink = parse_url($link);
    break;
    }
    }
    }

    https://wordpress.org/plugins/wpematico/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘support for google alerts rss feed’ is closed to new replies.