Skill / SKILL.md

Nonces Csrf Protection

wpultimatesecurity/WordPress-Security-Skills

Use when handling any form submission, AJAX request, admin-post action, settings page, link that triggers an action, or any other user-initiated request in a WordPress plugin or theme. Generates nonces with wp_nonce_field / wp_create_nonce and verifies them with check_admin_referer, check_ajax_referer, or wp_verify_nonce, always paired with a capability check, to prevent CSRF. Apply proactively whenever code accepts or acts on a request.
2 views 57 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when handling any form submission, AJAX request, admin-post action, settings page, link that triggers an action, or any other user-initiated request in a WordPress plugin or theme. Generates nonces with wp_nonce_field / wp_create_nonce and verifies them with check_admin_referer, check_ajax_referer, or wp_verify_nonce, always paired with a capability check, to prevent CSRF. Apply proactively whenever code accepts or acts on a request.

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/nonces-csrf-protection directory with your client’s skill installer.

  • skills/nonces-csrf-protection

    dev · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/nonces-csrf-protection

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

Please log in to comment

    No comments yet

Related skills