Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Ability] update-post-content — Read, modify, and save post content with validated block markup

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, php
Domain
api, full-stack

Research direction

Start with docs/ABILITIES-GUIDE.md and the existing includes/abilities/plugin-deactivate.php and src/extensions/abilities/plugin-deactivate.js examples. Implement the PHP and JavaScript ability, register it in src/extensions/abilities/index.js, then add cases to tests/abilities/core-abilities.test.js. Done means insert, replace, and delete operations validate with parse_blocks(), destructive operations require confirmation, and npm run build plus npm run test:abilities pass.

Written by the indexing model from the issue text.

Description

ability hackathon php react-js testing

Use Case

User says "add a paragraph after the heading" or "delete the second block" in the block editor chat. AI reads the current post blocks, performs the requested insert/replace/delete operation, validates the markup with parse_blocks(), and saves via REST API. Destructive operations (replace, delete) require confirmation.

Checklist

  • Writer: Define natural language triggers, expected response format, and confirmation requirements per operation type
  • PHP Dev: Create includes/abilities/update-post-content.php using register_agentic_ability()
  • JS Dev: Create src/extensions/abilities/update-post-content.js with registerAbility()
  • JS Dev: Register in src/extensions/abilities/index.js
  • LLM Tester: Add test cases to tests/abilities/core-abilities.test.js
  • Build & verify: npm run build and npm run test:abilities

References

  • Abilities Guide
  • Existing destructive ability example: includes/abilities/plugin-deactivate.php + src/extensions/abilities/plugin-deactivate.js

Notes

Operations: insert, replace, delete blocks by position. Reads current content from editor state or REST API (GET /wp/v2/posts/{id}). Saves via PUT /wp/v2/posts/{id} with content field. Validates all markup with parse_blocks() before saving — zero "Attempt Block Recovery" errors. Replace and delete operations are destructive and need requiresConfirmation: true. Depends on Goal 7 (block editor chat window) for the editor-side surface. See CLOUDFEST_HACKATHON.md Goal 8.

Dominant language
JavaScript
Stars
28
Forks
6
Avg merge
4d 3h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

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 pluginslab/wp-agentic-admin

All issues in pluginslab/wp-agentic-admin

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.