Title: AutoPromote
Author: PixelPlugins
Published: <strong>2025 年 6 月 25 日</strong>
Last modified: 2025 年 6 月 25 日

---

搜尋外掛

![](https://ps.w.org/autopromote/assets/icon-256x256.png?rev=3317389)

# AutoPromote

 由 [PixelPlugins](https://profiles.wordpress.org/pixelplugins/) 開發

[下載](https://downloads.wordpress.org/plugin/autopromote.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/autopromote/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/autopromote/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/autopromote/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/autopromote/#developers)

 [技術支援](https://wordpress.org/support/plugin/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

 1. Go to **AutoPromote** -> **Add New Promotion** in your WordPress admin menu.
 2. 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.
 3. In the **Promotion Details** section below the main editor:
 4.  * 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.
 5. **Publish** the promotion.
 6. Go to **AutoPromote** -> **All Promotions** to see a list of your scheduled promotions,
    their status (Scheduled, Active, Finished), and their dates.
 7. 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.
 8. 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.

## 螢幕擷圖

 * [[
 * All Promotions table view showing status and dates.
 * [[
 * Promotion Editor screen.
 * [[
 * Settings page.

## 安裝方式

 1. Upload the plugin files to the `/wp-content/plugins/autopromote` directory, or 
    install the plugin through the WordPress plugins screen directly (‘Plugins’ > ‘
    Add New’).
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Navigate to the **AutoPromote** menu in your WordPress admin sidebar.

## 常見問題集

### Does this plugin require an ecommerce plugin like WooCommerce?

No. AutoPromote works independently. You can manually enter coupon/discount information
directly into the promotion editor. The Pro version adds direct integration with
WooCommerce coupons as an optional enhancement.

### How does the plugin know which promotion to show?

It checks the current date and time (based on your WordPress site’s timezone setting)
against the scheduled start and end dates/times of all your published promotions.
It will only display content from the single promotion that is currently active.

### Can I schedule multiple promotions?

Yes, you can schedule as many promotions as you like for the future. However, the
plugin is designed so that **only one promotion can be active at any given time**.
The system will prevent you from saving a promotion if its start/end times overlap
exactly with another already scheduled promotion.

### What happens to the shortcodes when no promotion is active?

By default, the shortcodes will output the last active sale. However, you can go
to **AutoPromote > Settings > Global Shortcode Fallbacks**, enable the fallback 
option, and define default content (name, description, image, coupon details) or
show nothing.

### Can I customize how the shortcode output looks?

Yes. The shortcodes output standard HTML (text, `<img>` tags, etc.). You can target
these elements with custom CSS in your theme, page builder, or via the WordPress
Customizer’s Additional CSS section to match your site’s design.

### Where do I set the timezone?

AutoPromote uses the timezone set in your main WordPress settings. Go to **Settings
> General > Timezone** in your WordPress admin to configure it.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈AutoPromote〉的開發相關工作。

參與者

 *   [ PixelPlugins ](https://profiles.wordpress.org/pixelplugins/)
 *   [ James Callaghan ](https://profiles.wordpress.org/jamescallaghan/)

[將〈AutoPromote〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/autopromote)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/autopromote/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/autopromote/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/autopromote/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/autopromote/)。

## 變更記錄

#### 1.0

 * Initial release

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **11 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/autopromote/)
 *  [進階檢視](https://tw.wordpress.org/plugins/autopromote/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/autopromote/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/autopromote/reviews/)

## 參與者

 *   [ PixelPlugins ](https://profiles.wordpress.org/pixelplugins/)
 *   [ James Callaghan ](https://profiles.wordpress.org/jamescallaghan/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/autopromote/)