Flex Shortcodes

Flex Shortcodes

Details
View on WordPress

Flex Shortcodes stores HTML once and reuses it in posts, pages, widgets, and templates. Each snippet is a private WordPress post. Only published snippets print on the front end. PHP is never executed.

  • Insert by slug: [flexshortcodes name="promo-banner"] or by ID: [flexshortcodes id="123"]
  • Flex Shortcode block in the block editor, and a Flex Shortcode button in the classic editor
  • Optional parameters: [flexshortcodes name="button" label="Buy"] fills {{label}} in the HTML
  • Groups to organize the admin list (they do not change front-end output)
  • Duplicate a snippet, and find usages in posts, pages, and text widgets
  • JSON import and export (groups included)
  • Nested WordPress shortcodes, including other [flexshortcodes] tags, with circular includes blocked
  • Optional wrapper (div or span); off by default so snippets can be used inline
  • One-click copy from the list table and the editor sidebar
  • HTML-only editor so TinyMCE does not rewrite markup
  • Clean uninstall removes settings, snippet posts, and groups

No remote calls. CSS and JavaScript load from this plugin only.

Content rules

  • Saved HTML follows your WordPress capabilities (unfiltered_html for trusted roles)
  • Front-end output is sanitized with wp_kses_post() (post-allowed HTML only)
  • PHP is never executed
  • Missing or unpublished shortcodes output nothing on the front end
  • Parameter values are HTML-escaped; name and id are reserved for lookup

Privacy

Flex Shortcodes stores shortcode titles, HTML, and optional group names in your WordPress database as custom posts and a private taxonomy. It does not send data to external servers and does not load third-party services.

Details

Plugin code:
flex-shortcodes
Plugin version:
1.0.1
Outdated:
No
WP version:
6.2 or higher
PHP version:
7.4 or higher
Test up to WP version:
7.0.4
Total installations:
0
Last updated:
2026-08-18
Rating:
Times rated:
0
content
html
reusable-content
shortcode
snippet