跳到内容

Flex Shortcodes

v1.0.3

Flex Plugins · 2026年8月18日 上架

Create reusable HTML snippets and insert them anywhere with [flexshortcodes], a block picker, or the classic editor button.

正在使用
10 以下
评分
暂无
累计下载
377
最近更新
2026年9月17日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

截图

All Shortcodes — list, groups, copyable tags, import/export
All Shortcodes — list, groups, copyable tags, import/export
Editor — HTML code editor, Groups, and Shortcode meta box
Editor — HTML code editor, Groups, and Shortcode meta box
Settings — optional output wrapper
Settings — optional output wrapper
Usage — in-plugin guide
Usage — in-plugin guide

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums