Skill / SKILL.md

Input Sanitization Validation

wpultimatesecurity/WordPress-Security-Skills

Use when reading any external input in WordPress — $_GET, $_POST, $_REQUEST, $_COOKIE, REST params, shortcode/block attributes, option/meta values, or remote API responses. Unslashes then sanitizes to the correct type (sanitize_text_field, sanitize_email, absint, sanitize_key, wp_kses_post, esc_url_raw) and validates values against expected sets. Apply proactively before storing or using any untrusted value.
2 views 57 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when reading any external input in WordPress — $_GET, $_POST, $_REQUEST, $_COOKIE, REST params, shortcode/block attributes, option/meta values, or remote API responses. Unslashes then sanitizes to the correct type (sanitize_text_field, sanitize_email, absint, sanitize_key, wp_kses_post, esc_url_raw) and validates values against expected sets. Apply proactively before storing or using any untrusted value.

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/input-sanitization-validation directory with your client’s skill installer.

  • skills/input-sanitization-validation

    dev · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/input-sanitization-validation

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

Please log in to comment

    No comments yet

Related skills