All Projects → spacedmonkey → wp-rest-blocks

spacedmonkey / wp-rest-blocks

Licence: GPL-3.0 license
Add gutenberg blocks data into post / page / widget REST API endpoints.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to wp-rest-blocks

acf-field-boilerplate
Modernized PSR-2 boilerplate for creating custom fields for ACF5.
Stars: ✭ 54 (-37.21%)
Mutual labels:  wordpress-plugin
wp-better-emails
Adds a customizable good looking HTML template to all WP default plain/text emails and lets you set a custom sender name and email address.
Stars: ✭ 41 (-52.33%)
Mutual labels:  wordpress-plugin
woocommerce-dadata
WooCommerce DaData
Stars: ✭ 22 (-74.42%)
Mutual labels:  wordpress-plugin
wemail
Send Affordable Bulk Email Campaign Through WordPress
Stars: ✭ 19 (-77.91%)
Mutual labels:  wordpress-plugin
acf-swatch
ACF Color Swatch Field
Stars: ✭ 67 (-22.09%)
Mutual labels:  wordpress-plugin
Inactive-Logout
Development copy from the WordPress repository. Will release here first.
Stars: ✭ 19 (-77.91%)
Mutual labels:  wordpress-plugin
index-autoload
Adds an index to the autoload in wp_options table and verifies it exists on a daily basis (using WP Cron), resulting in a more efficient database.
Stars: ✭ 18 (-79.07%)
Mutual labels:  wordpress-plugin
host-webfonts-locally
OMGF automagically caches the Google Fonts used by your theme/plugins locally. No configuration (or brains) required!
Stars: ✭ 13 (-84.88%)
Mutual labels:  wordpress-plugin
sign-in-with-apple
A WordPress plugin for Sign In with Apple
Stars: ✭ 47 (-45.35%)
Mutual labels:  wordpress-plugin
wp-useronline
Enable you to display how many users are online on your WordPress blog with detailed statistics.
Stars: ✭ 37 (-56.98%)
Mutual labels:  wordpress-plugin
wp-cloud-deploy
WPCloudDeploy is a WordPress plugin that allows you to easily deploy and manage your own dedicated high-performance WordPress servers and sites at any cloud server provider.
Stars: ✭ 28 (-67.44%)
Mutual labels:  wordpress-plugin
wordpress-ostatus
An OStatus plugin for WordPress
Stars: ✭ 21 (-75.58%)
Mutual labels:  wordpress-plugin
ObjCUI
使用OC来写声明氏UI
Stars: ✭ 27 (-68.6%)
Mutual labels:  blocks
bu-versions
Make and save edits to published posts/pages in WordPress without immediately replacing the public content.
Stars: ✭ 20 (-76.74%)
Mutual labels:  wordpress-plugin
book-review-library
A book cataloguing and review system designed with bookophiles and librarians in mind.
Stars: ✭ 13 (-84.88%)
Mutual labels:  wordpress-plugin
WP-SVG-Icons-WordPress-Plugin
WPIcons Plugin (Formally WP SVG Icons) - Quickly and easily install font icons and custom SVG icons on any WordPress site.
Stars: ✭ 18 (-79.07%)
Mutual labels:  wordpress-plugin
WooCommerce-Multiple-Free-Gift
WooCommerce giveaway made easy.
Stars: ✭ 24 (-72.09%)
Mutual labels:  wordpress-plugin
spoken-word
Spoken Word
Stars: ✭ 46 (-46.51%)
Mutual labels:  wordpress-plugin
wp-block-description-list
A wordpress gutenberg block plugin for description lists.
Stars: ✭ 17 (-80.23%)
Mutual labels:  wordpress-plugin
wp-video-embed-privacy
Wordpress plugin for making ebedding videos GDPR compliant
Stars: ✭ 33 (-61.63%)
Mutual labels:  wordpress-plugin

REST API blocks

Contributors: spacedmonkey

Donate link: https://github.com/sponsors/spacedmonkey

Tags: blocks, gutenberg

Requires at least: 5.8

Tested up to: 5.9

Requires PHP: 7.0.0

Stable tag: 0.5.0

License: GPLv3 or later

License URI: https://www.gnu.org/licenses/gpl-3.0.en.html

Add gutenberg blocks data into post / page / widget REST API endpoints.

Description

Build Status

A simple plugin to add block data in json format into the rest api. Once installed, there will be two new fields added to the rest api, has_blocks and blocks. For example output.

"has_blocks": true,
"blocks": [
  {
	"blockName": "core/image",
	"attrs": {
	  "url": "https://www.spacedmonkey.com/wp-content/uploads/2018/12/test-image.jpg",
	  "alt": "Terminal de aeropuerto",
	  "caption": "fsfsdfdsfdssfd",
	  "href": "https://www.spacedmonkey.com/test-image",
	  "rel": "noreferrer noopener",
	  "linkClass": "jonny-123",
	  "linkTarget": "_blank",
	  "id": 147355,
	  "width": 582,
	  "height": 327,
	  "linkDestination": "attachment"
	},
	"innerBlocks": [

	],
	"innerHTML": "\n<figure class=\"wp-block-image is-resized\"><a class=\"jonny-123\" href=\"https://www.spacedmonkey.com/test-image\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https://www.spacedmonkey.com/wp-content/uploads/2018/12/test-image.jpg\" alt=\"Terminal de aeropuerto\" class=\"wp-image-147355\" width=\"582\" height=\"327\"/></a><figcaption>fsfsdfdsfdssfd</figcaption></figure>\n",
	"innerContent": [
	  "\n<figure class=\"wp-block-image is-resized\"><a class=\"jonny-123\" href=\"https://www.spacedmonkey.com/test-image\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https://www.spacedmonkey.com/wp-content/uploads/2018/12/test-image.jpg\" alt=\"Terminal de aeropuerto\" class=\"wp-image-147355\" width=\"582\" height=\"327\"/></a><figcaption>fsfsdfdsfdssfd</figcaption></figure>\n"
	],
	"rendered": "\n<figure class=\"wp-block-image is-resized\"><a class=\"jonny-123\" href=\"https://www.spacedmonkey.com/test-image\" target=\"_blank\" rel=\"noreferrer noopener\"><img src=\"https://www.spacedmonkey.com/wp-content/uploads/2018/12/test-image.jpg\" alt=\"Terminal de aeropuerto\" class=\"wp-image-147355\" width=\"582\" height=\"327\"/></a><figcaption>fsfsdfdsfdssfd</figcaption></figure>\n"
  }
],

Installation

Installation requires you to check the project out in plugin directory and do a composer install.

Changelog

0.5.0

  • Add support for new post types added in WordPress 5.9.

0.4.0

  • Added support for block based widget, added in WordPress 5.8. Block data is added to the /wp/v2/widgets endpoint.

0.3.2

  • Update translations

0.3.1

  • Hot fix.

0.3.0

  • Improve support for block that have attributes that use query source type.
  • Improve error handling for those that install this plugin without using composer.

0.2.1

  • Update dependency.

0.2.0

  • Breaking change. Field names have changed and required WordPress 5.5+

0.1.0

  • First version.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].