Skill / SKILL.md

Capability Permission Checks

wpultimatesecurity/WordPress-Security-Skills

Use when adding admin pages, menu items, AJAX/REST handlers, action links, or any code that performs a privileged operation in WordPress. Gates actions with current_user_can() using the correct capability (not roles), including per-object checks like edit_post, and pairs the check with a nonce. Prevents privilege escalation and broken access control. Apply proactively to every privileged code path.
2 views 57 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when adding admin pages, menu items, AJAX/REST handlers, action links, or any code that performs a privileged operation in WordPress. Gates actions with current_user_can() using the correct capability (not roles), including per-object checks like edit_post, and pairs the check with a nonce. Prevents privilege escalation and broken access control. Apply proactively to every privileged code path.

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/capability-permission-checks directory with your client’s skill installer.

  • skills/capability-permission-checks

    dev · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/capability-permission-checks

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
f98003f6cbbc0dae7882ce80440d8dfb81d514eeee52e35893b8b3dff94017f1
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills