
內容簡介
總結:AppsFruit Elementor Embed 是一個外掛,允許您在網站的任何位置使用簡單的短代碼或 Gutenberg 區塊,嵌入 Elementor 頁面、模板和全域區段,並提供高級條件顯示選項。
問題與答案:
1. AppsFruit Elementor Embed 可以讓您在網站的哪些位置嵌入 Elementor 頁面、模板和全域區段?
- 使用簡單的短代碼或 Gutenberg 區塊。
2. 可以根據什麼條件顯示模板?
- 可以根據裝置(手機/桌面)、使用者角色或文章類型等條件顯示模板。
3. 這個外掛提供了什麼開發者友善的功能?
- 提供廣泛的鉤子和過濾器,用於自定義。
4. 使用這個外掛需要符合哪些系統要求?
- WordPress 5.8 或更高版本、PHP 7.4 或更高版本、已安裝並啟用的 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 AFE 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 5.8 or higher
PHP 7.4 or higher
Elementor (free version) installed and activated
Basic Usage
[afe_embed id=123]
Replace 123 with your template ID.
Conditional Display
Device-Specific Display:
[afe_embed id=123 device=”mobile”]
[afe_embed id=123 device=”desktop”]
Role-Based Display:
[afe_embed id=123 role=”administrator”]
[afe_embed id=123 role=”editor|subscriber”]
Post Type Specific:
[afe_embed id=123 post_type=”page”]
[afe_embed id=123 post_type=”post|product”]
Combined Conditions:
[afe_embed id=123 device=”mobile” role=”subscriber” post_type=”post”]
Developer Hooks
The plugin provides several hooks and filters for developers:
afe_shortcode_atts – Modify shortcode attributes
afe_should_display – Add custom display conditions
afe_should_render_template – Prevent template rendering
afe_template_content – Modify template output
afe_before_render_template – Action before rendering
afe_after_render_template – Action after rendering
