Description
Embed Tweets without compromising your users privacy and your sites performance. This plugin works with the built-in Tweet Gutenberg block by removing Twitters script and using Twitters API to retrieve the data.
You can optionally provide Twitter API keys to show the number of likes and retweets and load images and other media in Tweets.
FAQ and Troubleshooting
Tweets are not loading
Please make sure your API keys are set up correctly and that youre using the v2 of Twitters API. (See the Get Started section.)
I need to run a script after Tweets are processed
You can use the tembeds_tweets_processed
event. Using jQuery as an example, you could do the following:
$( document ).on( 'tembeds_tweets_processed', function(){ $( '.twitter-tweet' ).each( function(){ let $tweet = $( this ); // Now you can do something with each Tweet. } ); } );