该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

TEmbeds

描述

Embed Tweets without compromising your users’ privacy and your site’s performance. This plugin works with the built-in Tweet Gutenberg block by removing Twitter’s script and using Twitter’s 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.

Learn more | View source

FAQ and Troubleshooting

Tweets are not loading

Please make sure your API keys are set up correctly and that you’re using the v2 of Twitter’s 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.
    } );
} );

屏幕截图

评价

此插件暂无评价。

贡献者及开发者

「TEmbeds」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「TEmbeds」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志