[WordPress] 外掛分享: AutoPromote

首頁外掛目錄 › AutoPromote
全新外掛
安裝啟用
尚無評分
267 天前
最後更新
問題解決
WordPress 6.6+ PHP 7.4+ v1.0 上架:2025-06-24

內容簡介

### 簡介
- **AutoPromote** 提供了一個簡單的、集中的系統,讓您可以輕鬆地安排和管理時間敏感性的內容,免去每次舉辦促銷、產品上市或公告時手動更新橫幅、公告欄和促銷內容的麻煩。

### 問題與答案
1. 使用 AutoPromote 可以做什麼?
- AutoPromote 提供了一個簡單的、集中的系統,讓您可以輕鬆地安排和管理時間敏感性的內容。

2. 使用 AutoPromote 能否設定促銷活動的起始和結束時間?
- 是的,您可以定義促銷期間(比如促銷、活動或公告)的具體開始和結束時間。

3. 可以在哪些網站區域上使用 AutoPromote 的簡短代碼?
- 您可以在任何網站區域(頁面、文章、小工具、頁面構建器)上使用簡單的短代碼,以自動顯示目前正在進行的促銷的正確信息。

4. AutoPromote 如何確保網站內容在一個促銷結束並另一個開始時自動更新?
- 當一個促銷結束並另一個開始時,AutoPromote 會自動更新您的網站內容,不再需要深夜編輯或忘記刪除過期促銷橫幅。

5. 如何防止安排兩個促銷活動在完全相同的時間運行?
- AutoPromote 的系統會自動防止您意外安排兩個促銷在完全相同的時間運行,確保訪客清晰。

6. 可以設計短代碼的格式嗎?
- 是的,您可以通過簡單的設置控制日期、優惠券代碼(如大寫)和折扣金額的顯示。

### End of Content.

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「AutoPromote」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Tired of manually updating banners, announcement bars, and promotional content across your website every time you run a sale, launch a product, or make an announcement? AutoPromote provides a simple, centralized system to schedule and manage time-sensitive content effortlessly.
Define your promotional periods (like sales, events, or announcements) with specific start and end times. Add associated content like descriptions, promotional images, and even coupon details. Then, use simple shortcodes anywhere on your site (pages, posts, widgets, page builders) to automatically display the correct information for the currently active promotion.
When one promotion ends and another begins, your website content updates automatically. No more late-night edits or forgetting to remove expired sale banners! AutoPromote ensures your visitors always see the right message at the right time.
Core Features

Centralized Promotion Management: Create, edit, schedule, and manage all your time-based promotions (sales, events, announcements) from one dedicated “AutoPromote” area in your WordPress admin.
Precise Scheduling: Set specific start and end dates and times (down to the second!) for each promotion.
Dynamic Content Shortcodes: Use simple shortcodes like [pixel_apfw_promotion_name] or [pixel_apfw_promotion_image] to display the active promotion’s details anywhere on your site. The content updates automatically based on your schedule.
Standalone Coupon/Discount Details: Easily add a coupon code, discount amount, and discount type (e.g., “%” or “$”) directly to your promotion. Shortcodes can display this information.
Promotional Images: Upload or select a unique promotional image for each campaign via the WordPress Media Library.
Conflict Prevention: The system automatically prevents you from accidentally scheduling two promotions to run at the exact same time, ensuring clarity for your visitors.
Global Fallback Content: Optionally define default text, image, and coupon details to show via shortcodes when no promotion is currently scheduled to be active.
Shortcode Formatting Options: Control how dates, coupon codes (e.g., uppercase), and discount amounts are displayed through simple settings.

Available Shortcodes
Shortcodes automatically display content from the single promotion that is currently active based on its scheduled start and end date/time. If the Global Fallback setting is enabled and configured, fallback content will be displayed instead when no promotion is active.

[pixel_apfw_promotion_name] – Displays the active promotion’s name (the title you entered).
[pixel_apfw_promotion_description] – Displays the active promotion’s description/copy.
[pixel_apfw_promotion_image size="full"] – Displays the active promotion’s promotional image. Accepts standard image sizes (thumbnail, medium, large, full) via the size attribute (optional, defaults to ‘full’).
[pixel_apfw_promotion_coupon_code] – Displays the coupon code you entered manually for the active promotion. Format (e.g., uppercase) can be set in Settings.
[pixel_apfw_promotion_discount_amount] – Displays the discount amount you entered manually for the active promotion. Format (e.g., “$10.00” vs “10”) can be set in Settings.
[pixel_apfw_promotion_date type="start"] – Displays the active promotion’s start date/time.
[pixel_apfw_promotion_date type="end"] – Displays the active promotion’s end date/time.

Note: The date/time format for [pixel_apfw_promotion_date] can be globally configured in AutoPromote > Settings, or overridden per-shortcode using the format attribute (e.g., format="F j, Y"). Uses standard PHP date format strings.

(Pro version adds integration to pull data directly from WooCommerce coupons, conditional display shortcodes ([pixel_apfw_show_if_active], [pixel_apfw_show_if_inactive]), promotion color options ([pixel_apfw_promotion_color]), PHP helper functions (pixel_apfw_get_promotion_color(), etc.), and a custom wrapper shortcode.)
Where to Use Shortcodes
Use these shortcodes in:
* Page/Post content
* Text Widgets
* Page builder elements (like text blocks or HTML modules)
* Website headers/footers (via theme options, hooks, or site editor blocks)
* Banner, announcement bar, or popup plugins that support shortcodes
* Anywhere else WordPress shortcodes are processed!
Getting Started

Go to AutoPromote -> Add New Promotion in your WordPress admin menu.
Enter a Title for your promotion (e.g., “Summer Kick-Off Sale”, “Website Maintenance Notice”). This is used by the [pixel_apfw_promotion_name] shortcode.
In the Promotion Details section below the main editor:

Select the Start Date/Time and End Date/Time using the calendar/time pickers. These are required.
Write the Description for your promotion using the editor provided. This is used by [pixel_apfw_promotion_description].
Click Select Image to upload or choose a Promotional Image from your Media Library. This is used by [pixel_apfw_promotion_image].
Optionally, enter the Coupon Code, Discount Amount, and select the Discount Type if this promotion involves a discount. This data is used by the [pixel_apfw_promotion_coupon_code] and [pixel_apfw_promotion_discount_amount] shortcodes.

Publish the promotion.
Go to AutoPromote -> All Promotions to see a list of your scheduled promotions, their status (Scheduled, Active, Finished), and their dates.
Go to AutoPromote -> Settings to configure global fallbacks (what shows when no promotion is active) and default formatting for dates and coupon details. You can also find a list of all available shortcodes here with copy buttons.
Place the desired shortcodes (e.g., [pixel_apfw_promotion_name], [pixel_apfw_promotion_image]) on your site’s pages, posts, widgets, etc., where you want the promotion information to appear dynamically.

文章
Filter
Mastodon