Replace link text with display_url
-
Currently, all the links in the tweet are t.co links, but it would be great if you could replace them with the original links. I’ve made a rough proof of concept by using
$display_url = $message['entities']['urls'][0]['display_url'];
Although this only works for the first link in the message, so will break for tweets with more than one link in them.
https://www.ads-software.com/plugins/really-simple-twitter-feed-widget/
- The topic ‘Replace link text with display_url’ is closed to new replies.