Plugin Released “REST API Widgets”

Now I trying WP REST API, and I made a plugin that create Widgets using WP REST API.

WordPress › Rest API Widgets « WordPress Plugins

WordPress › Rest API Widgets « WordPress Plugins

Required

Of course the plugin needs “WP REST API(Version2)”.

If you want to try it, you have to install “WP REST API(Version2)”.

How to install

Search “REST API Widgets”, you can find it.
*

How to Use

If you activate this plugin, you can use some Widgets.
*

New Post List Widget

you can edit widget title

you can edit widget title

show 10 new post

show 10 new post

If you want to change API query, you can use ‘rest-widgets-postlist-query’ filter.

[php]
$api_url = home_url( ‘/’ ). ‘wp-json/wp/v2/posts’;
$api_url = apply_filters( ‘rest-widgets-postlist-query’ , $api_url );
$api_url = esc_url( $api_url );
[/php]
rest-api-widget/class.postlist.php at master · hideokamoto/rest-api-widget

All Comment List Widget

show ten comments that added recently.

show ten comments that added recently.

Comment Form Widget

POST comment to current post

POST comment to current post

In fllowing page,this Widget is hidden.

– TOP
– Archive
– Closed Comment Post

Need Pull Request

hideokamoto/rest-api-widget

Follow me!

Okamoto Hidetaka
デジタルキューブのインフラエンジニア。勉強会に和太鼓の練習から直行することが多く「太鼓の人」とかよばれてます。 思いつきで公式ディレクトリにテーマやプラグインをアップしたりテーマレビューやったりしています。 AWS / WordPress / LinkedOpenData周りで活動していて、APIをどうこうして何か作るというのが多いです。 ひとこと
mautic is open source marketing automation