Convert Blocks to JSON

설명

This plugin offers a powerful solution for importing and exporting WordPress blocks in JSON format, making it easy to move posts across different WP websites. It is also beneficial for WP engineers who are adopting a Headless CMS approach and would like a way to be able to fetch data from the front-end using tools like React, Vue & so on.

It’s simple, yet very powerful!

✨ Getting Started

Create a new Post or open an existing Post. Locate the Convert Blocks to JSON icon at the top right corner of the Block Editor and click on it. From here you can do the following actions:

  1. View JSON – Generate JSON data of the post you are working on.
  2. Import JSON – Import JSON data from a JSON file to the post you are working on.
  3. Export JSON – Export JSON data of the post to a JSON file.

You can get a taste of how this works, by using the demo link.

⚡ Why Convert Blocks to JSON

  1. This plugin is useful for users who want to be able to import and export articles or posts between different WordPress sites easily.

  2. This plugin is beneficial for WP engineers who are adopting a Headless CMS approach and would like a way to be able to fetch data from the front-end using tools like React, Vue & so on.

🔌🎨 Plug and Play or Customize

The Convert Blocks to JSON plugin is built to work right out of the box. Simply install, activate and start using in your Block Editor.

Want to add your personal touch? All of our documentation can be found here. You can override the plugin’s behaviour with custom logic of your own using hooks.

Contribute

If you’d like to contribute to the development of this plugin, you can find it on GitHub.

To build, clone repo and run yarn install && yarn build

스크린샷

  • Convert Blocks to JSON icon – Convert your blocks to JSON and vice versa.
  • Convert Blocks to JSON options – View, Import Blocks & Export Blocks.
  • Convert Blocks to JSON sidebar – See Convert Blocks to JSON on sidebar.

설치

  1. Go to ‘Plugins > Add New’ on your WordPress admin dashboard.
  2. Search for ‘Convert Blocks to JSON’ plugin from the official WordPress plugin repository.
  3. Click ‘Install Now’ and then ‘Activate’.
  4. Proceed to your Block Editor and locate the top right corner.
  5. You should now see the ‘Convert Blocks to JSON’ icon available for use.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Convert Blocks to JSON”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Convert Blocks to JSON”(이)가 3 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Convert Blocks to JSON”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.5

  • Fix CI/CD build process.
  • Update README text content.
  • Bump up plugin version.
  • Tested up to WP 6.7.0.

1.0.4

  • Provide graceful fallback for block arrays.
  • Filter out empty|null blocks.
  • Ignore file_get_contents warning.
  • Update Permalink structure if empty, flush rules.
  • Tested up to WP 6.6.2.

1.0.3

  • Replace mt_rand with string version for asset enqueuing.
  • Fix Bugs and Linting issues.
  • Updated README notes with screenshots.
  • Tested up to WP 6.6.2.

1.0.2

  • Refactor: Use is_user_permissible for permissions callback.
  • Updated Unit Tests coverage.
  • Tested up to WP 6.6.2.

1.0.1

  • Added Import functionality.
  • Custom Hooks – cbtj_rest_import.
  • New custom REST API endpoint – cbtj/v1/import.
  • Updated translation files to cater for Import modal window text translations.
  • Added more Unit Tests coverage.
  • Tested up to WP 6.6.2.

1.0.0

  • Convert & Export Blocks to JSON.
  • Custom Hooks – cbtj_rest_response.
  • Provided support for Arabic, Chinese, Hebrew, Hindi, Russian, German, Italian, Croatian, Spanish & French languages.
  • Unit Tests coverage.
  • Tested up to WP 6.6.1.