Skill / SKILL.md

Gutenberg Block Editor Security

wpultimatesecurity/WordPress-Security-Skills

Use when building dynamic blocks or block-editor features - a render_callback, server-side rendered blocks via ServerSideRender, REST-backed block data, or register_rest_field for the editor. Sanitizes block attributes per type, escapes server render output, sets a real permission_callback on editor REST surfaces, and handles RichText content with wp_kses. Prevents stored XSS and broken access control in the editor.
2 views 57 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when building dynamic blocks or block-editor features - a render_callback, server-side rendered blocks via ServerSideRender, REST-backed block data, or register_rest_field for the editor. Sanitizes block attributes per type, escapes server render output, sets a real permission_callback on editor REST surfaces, and handles RichText content with wp_kses. Prevents stored XSS and broken access control in the editor.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/wpultimatesecurity/WordPress-Security-Skills' skill-source

Use the complete skill-source/skills/gutenberg-block-editor-security directory with your client’s skill installer.

  • skills/gutenberg-block-editor-security

    dev · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/gutenberg-block-editor-security

Compatibility & requirements

Declared compatibility

Examples generally use PHP 7.4 syntax; check each API against target WordPress/PHP versions. Use maintained WordPress and supported PHP in production. Shell examples require their named tools.

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
3c8eb918f66d9eb488892c0c1068c76ba4445870900df98584162b4c0b2d3676
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills