2015年10月23日 星期五

An experiment with the WP REST API and Jetpack’s REST API

Jetpack Protect Blocks Brute Force Amplification Attacks

A couple of months in the past, I set to study extra concerning the variations between Jetpack’s REST API and the WP REST API plugin. Each tasks are very fascinating for the way forward for WordPress, as they permit third-get together apps and providers to work together with WordPress.

I consequently developed somewhat plugin utilizing each APIs: REST API Post Embeds.

The plugin permits you to embed posts out of your website or others’ into your posts and pages. It does so utilizing Jetpack’s REST API or the WP REST API plugin.

To make use of the plugin, all you need to do is so as to add the jeherve_post_embed shortcode into one in every of your posts or pages. That shortcode accepts many various parameters, listed on this page. An important parameter is wpapi, because it lets you select whether or not the plugin ought to question the location utilizing Jetpack or the WP REST API plugin.

To provide you an instance, you might for instance use the plugin to retrieve a picture grid of the eight most up-to-date posts tagged “jetpack” on WPTavern.com, utilizing Jetpack’s REST API.

[jeherve_post_embed url=”wptavern.com” number=”8″ include_images=”true” include_title=”false” include_excerpt=”false” image_size=”125,125″ tag=”jetpack” wrapper_class=”example-grid”]

I consider the shortcode parameters converse for themselves right here. Right here is the end result:

You Can Now Search for and Install Plugins From Within Jetpack Manage
Jetpack 3.7.2 Patches Two Security Vulnerabilities
Jetpack 3.7 Introduces a Simpler Interface, Adds Support for Development Sites
Jetpack 3.6 Adds the Ability to Manage Your Connections to Jetpack
<a goal="_self" rel="nofollow" title="Jetpack Relaunches Beta Testing

The post An experiment with the WP REST API and Jetpack’s REST API appeared first on DICKLEUNG DESIGN 2014.

沒有留言: