Plugin Released “REST API Widgets”
Now I trying WP REST API, and I made a plugin that create Widgets using WP REST API. Required Of course the pl […]
目次
Now I trying WP REST API, and I made a plugin that create Widgets using WP REST API.
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

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
Comment Form Widget
In fllowing page,this Widget is hidden.
– TOP
– Archive
– Closed Comment Post