Skill / SKILL.md

Sql Injection Prevention

wpultimatesecurity/WordPress-Security-Skills

Use when writing any custom database query in WordPress with $wpdb — get_results, get_var, get_row, query, or building WHERE/IN/LIKE/ORDER BY clauses. Uses $wpdb->prepare() with correct placeholders (%d, %s, %f, %i), $wpdb->esc_like() for LIKE, and allowlists for identifiers that cannot be parameterized. Prevents SQL injection. Apply proactively to every query containing a dynamic value.
2 views 57 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when writing any custom database query in WordPress with $wpdb — get_results, get_var, get_row, query, or building WHERE/IN/LIKE/ORDER BY clauses. Uses $wpdb->prepare() with correct placeholders (%d, %s, %f, %i), $wpdb->esc_like() for LIKE, and allowlists for identifiers that cannot be parameterized. Prevents SQL injection. Apply proactively to every query containing a dynamic 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/sql-injection-prevention directory with your client’s skill installer.

  • skills/sql-injection-prevention

    dev · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/sql-injection-prevention

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

Please log in to comment

    No comments yet

Related skills