
內容簡介
AppsFruit Elementor Embed 允許用戶在網站的任何地方嵌入 Elementor 頁面、模板和全域區塊,透過簡單的短碼或 Gutenberg 區塊,並提供進階的條件顯示選項,提升網站的靈活性與功能性。
【主要功能】
• 嵌入任意位置:使用短碼或 Gutenberg 區塊插入 Elementor 模板
• 條件顯示:根據設備、用戶角色或文章類型顯示模板
• 自訂文章類型:專用的 AEFE 模板文章類型,完全支援 Elementor
• 組織管理:內建分類和標籤以管理模板
• 快速複製:從管理介面一鍵複製短碼
• 全球同步:一次更新,處處反映
外掛標籤
開發者團隊
原文外掛簡介
AppsFruit Elementor Embed allows you to embed Elementor pages, templates, and global sections anywhere on your site using simple shortcodes or Gutenberg blocks with advanced conditional display options.
Key Features
Embed Anywhere: Insert Elementor templates using simple shortcodes or Gutenberg blocks
Conditional Display: Show templates based on device (mobile/desktop), user role, or post type
Custom Post Type: Dedicated AEFE Templates post type with full Elementor support
Organization: Built-in categories and tags for template management
Quick Copy: One-click shortcode copying from admin interface
Global Sync: Update once, reflect everywhere
Gutenberg Block: Visual template insertion without shortcodes
Developer Friendly: Extensive hooks and filters for customization
Secure & Lightweight: Follows WordPress coding standards
Requirements
WordPress 6.0 or higher
PHP 7.4 or higher
Elementor (free version) installed and activated
Basic Usage
[aefe_embed id="123"]
Replace 123 with your template ID.
Conditional Display
Device-Specific Display:
[aefe_embed id=”123″ device=”mobile”]
[aefe_embed id=”123″ device=”desktop”]
Role-Based Display:
[aefe_embed id=”123″ role=”administrator”]
[aefe_embed id=”123″ role=”editor|subscriber”]
Post Type Specific:
[aefe_embed id=”123″ post_type=”page”]
[aefe_embed id=”123″ post_type=”post|product”]
Combined Conditions:
[aefe_embed id=”123″ device=”mobile” role=”subscriber” post_type=”post”]
Developer Hooks
The plugin provides several hooks and filters for developers:
aefe_shortcode_atts – Modify shortcode attributes
aefe_should_display – Add custom display conditions
aefe_should_render_template – Prevent template rendering
aefe_template_content – Modify template output
aefe_before_render_template – Action before rendering
aefe_after_render_template – Action after rendering
