WP Manifestindependent plugin directory
manifest / developer / gutenberg-object-plugin

Gutenberg Object Plugin

Saves Gutenberg data as an object / array and allows you to access it via REST API

by Roy Sivan · github.com/royboy789/gutenberg-object-plugin

241stars
7composer installs
16forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/royboy789/gutenberg-object-plugin/archive/refs/heads/master.zip

Also on Packagist as royboy789/gutenberg-array-save:

composer require royboy789/gutenberg-array-save

From the readme

Gutenberg Object Plugin The purpose of this plugin is to save Gutenberg (New WordPress Editor) data as an array in the database which is accessible via the REST API. Installation Clone Run composer install Run npm install npm run dev / npm run build Activate plugin. WIKI I am adding docs to the WIKI WHY While the new UI for the WordPress Editor is amazing, the data as it is stored lends a lot ot be desired with HTML comments as a basis for data WHERE Data will be saved in a new database table [prefix]gutesarrays REST API I have included a filter to adda editorblock to the normal post content response. API ENDPOINTS Includes 1 new route: wp-json/gutes-db/v1/[post-id] - Supports GET & POST wp-json/gutes-db/v1/[post-id]/revisions - Supports GET only GET GET: wp-json/gutes-db/v1/[post-id] Returns isgutes: Is the post created with Gutenberg postid: Post ID data: Gutenberg Data embedded['post']: optional with \embed - response from WP REST API for post SAVE POST: wp-json/gutes-db/v1/[post-id] id - required - post ID gutesdata - required - Data array Hooks To send the data to the API to save we must first transform data. Using wp.hooks You can tie into this

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
2.0.0Feb 15, 2019
1.6.0Dec 12, 2018
1.5.0Nov 26, 2018
1.4.1Jul 21, 2018
1.4.0Jul 21, 2018
1.3.0Jul 13, 2018
1.2.0Jul 12, 2018