Skill / SKILL.md

Rest Api Security

wpultimatesecurity/WordPress-Security-Skills

Use when registering WordPress REST API routes with register_rest_route or building custom endpoints. Sets a real permission_callback (never __return_true for writes), defines args with sanitize_callback and validate_callback, enforces capabilities and per-object checks, and escapes any HTML in responses. Prevents broken access control and injection via the REST surface. Apply proactively to every registered route.
2 views 57 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when registering WordPress REST API routes with register_rest_route or building custom endpoints. Sets a real permission_callback (never __return_true for writes), defines args with sanitize_callback and validate_callback, enforces capabilities and per-object checks, and escapes any HTML in responses. Prevents broken access control and injection via the REST surface. Apply proactively to every registered route.

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/rest-api-security directory with your client’s skill installer.

  • skills/rest-api-security

    dev · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/rest-api-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
3c888ff1a0fef8bd9fb494ab1d8921db069c6cb7ac6dcebccb8cea36bf057254
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills