
內容簡介
Flex Shortcodes 外掛允許用戶儲存 HTML 代碼並在文章、頁面、小工具及佈景主題中重複使用。每個片段都是私有的 WordPress 文章,僅已發佈的片段會在前端顯示,並且不執行 PHP 代碼。
【主要功能】
• 儲存並重複使用 HTML 片段
• 支援以 slug 或 ID 插入短碼
• 組織管理列表的群組功能
• 複製片段及查找使用情況
• JSON 匯入與匯出功能
• 清潔卸載移除所有設定與片段
外掛標籤
開發者團隊
原文外掛簡介
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.
