Plugin - Flex Shortcodes
Reusable HTML snippets inserted with [flexshortcodes], a block picker, or the classic editor button. PHP is never executed.
- Shortcodes
- Snippets
- HTML
What it does
Store HTML once and reuse it in posts, pages, widgets, and templates.
Parameters fill {{placeholders}}; nested shortcodes are allowed, circular includes are blocked.
Features
- Insert by slug or ID: [flexshortcodes name="promo-banner"]
- Block editor picker and classic editor button
- Optional parameters mapped to {{placeholders}}
- JSON import / export, duplicate, and find usages
- Front-end output sanitized with wp_kses_post(); no PHP execution
Get it
Flex Shortcodes is free on WordPress.org under GPLv2 or later. Install from Plugins → Add New, or download the package from https://wordpress.org/plugins/flex-shortcodes/.