Sending blocks to WordPress?

Open
#5 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, wordpress

Research direction

Start by reviewing the WordPress addPost API behavior described in the issue, especially the proposed html content_type and block conversion. No files, tests, or entry points are named, so the first step is to locate the relevant API integration. Done would require an agreed architecture for centralizing HTML-to-block translation and a defined implementation scope.

Written by the indexing model from the issue text.

Description

As more people at Automattic try WordLand I'm hearing a question, always politely asked, why aren't we using blocks?

There's no religious issue here, if it were easy to do, I would be ready to try it soon, to see what happens, if anything in WordLand breaks. On an experimental basis.

My first thought though, is why the addPost API on the WP side of it, doesn't do the translation. If I specify the content_type of the content as html, the server could parse that into a block structure.

In any case I wanted to open a place to explore this from an architecture standpoint. If there has to be an HTML parser somewhere that generates block, I would think it should be as central as possible, so everyone doesn't have to write the same tedious code. It's the kind of thing imho you want to bury as deeply as you can.

Dominant language
JavaScript
Stars
21
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scripting/wpIdentity

All issues in scripting/wpIdentity

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.