Skill / SKILL.md

Shortcode Block Security

wpultimatesecurity/WordPress-Security-Skills

Use when registering a shortcode with add_shortcode or a dynamic block with a render_callback, or processing shortcode / block attributes. Normalizes attributes with shortcode_atts, validates against allowlists, and escapes all rendered output for its context with esc_html, esc_attr, esc_url, or wp_kses_post. Prevents stored and reflected XSS in rendered content.
2 views 57 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use when registering a shortcode with add_shortcode or a dynamic block with a render_callback, or processing shortcode / block attributes. Normalizes attributes with shortcode_atts, validates against allowlists, and escapes all rendered output for its context with esc_html, esc_attr, esc_url, or wp_kses_post. Prevents stored and reflected XSS in rendered content.

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

  • skills/shortcode-block-security

    dev · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/shortcode-block-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
5bb57711ec5dbf86339e380a2517368c7aa62901270ad88b85d55a6b9682f3fc
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills