[WordPress] 外掛分享: VoucherPress

前言介紹

  • 這款 WordPress 外掛「VoucherPress」是 2010-02-10 上架。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2016-02-06,距離現在已有 3375 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.8 以上版本才可以安裝。
  • 有 17 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

mrwiblog |

外掛標籤

pdf | print | Voucher | vouchers | buddypress |

內容簡介

感謝您使用 VoucherPress。看到這麼多人創建各種業務的優惠券,從披薩店到珠寶商,從清潔公司到體育俱樂部 - 您已經創建了數千個優惠券。我真的很自豪可以創建一些對許多人有用的東西。

當我在開發 VoucherPress 的下一版時,如果您能填寫這份簡短的調查,將會非常有幫助。謝謝您的時間。

您是否曾想在您的網站上提供優惠券、門票、優惠券或令牌?如果是,這個外掛就是為您而設的。您可以創建任何您想要的文字的優惠券,從各種模板中選擇版面設計和字體(您也可以添加自己的模板)。然後指定 URL,這些優惠券就可以被查看、下載和打印。

有簡碼可以添加連結到特定的優惠券,以顯示所有優惠券的無序列表,或顯示註冊表以請求限制的優惠券。

您可以要求訪問者提供他們的姓名和電子郵件地址以獲得優惠券。如果需要電子郵件地址,系統將向其發送一封電子郵件並包含指向優惠券 URL 的鏈接。每個優惠券都有一個唯一的代碼,與電子郵件地址相關聯的優惠券只能使用一次,因此一旦下載需要註冊的優惠券,它就無法再次下載。

挂鈎

從1.1.2版本開始,該外掛還提供了一些挂鈎供您使用以運行自己的自定義代碼。這些挂鈎如下:

voucherpress_create

當創建優惠券時,此挂鈎將返回優惠券的屬性。您可以像這樣使用它:

add_action( 'voucherpress_create', 'my_voucherpress_create_function' );
function my_voucherpress_create_function( $id, $name, $text, $description, $template, $require_email, $limit, $startdate, $expiry ) {
// 在這里進行操作...
}

voucherpress_edit

當編輯優惠券時,此挂鈎將返回優惠券的屬性。您可以像這樣使用它:

add_action( 'voucherpress_edit', 'my_voucherpress_edit_function' );
function my_voucherpress_edit_function( $id, $name, $text, $description, $template, $require_email, $limit, $startdate, $expiry ) {
// 在這里進行操作...
}

voucherpress_register

當有人註冊以下載優惠券並向他們發送電子郵件時,此挂鈎將返回優惠券和用戶的詳細信息。您可以像這樣使用它:

add_action( 'voucherpress_register', 'my_voucherpress_register_function' );
function my_voucherpress_register_function( $voucher_id, $voucher_name, $user_email, $user_name ) {
// 在這里進行操作...
}

voucherpress_download

當有人下載優惠券時,此挂鈎將返回優惠券和用戶的詳細信息。您可以像這樣使用它:

add_action( 'voucherpress_download', 'my_voucherpress_download_function' );
function my_voucherpress_download_function( $voucher_id, $voucher_name, $code ) {
// 在這里進行操作...
}

該外掛還使用__()函數,以實現易於翻譯。

感謝 Christian Serron (http://twitter.com/cserron) 提供讓優惠券在小工具中運行的代碼(目前停用,我正在修復此問題),以及 Barry (http://www.betakeygiveaway.com/) 超乎職責的 bug 測試。

簡碼

有四個可用的簡碼。第一個簡碼顯示鏈接到特定的優惠券,並且...(未完待續)

原文外掛簡介

Thanks for using VoucherPress. It’s great to see so many people creating vouchers for all kinds of business. From pizza joints to jewellers, cleaning companies to sports clubs – you’ve created thousands of vouchers, and I’m really proud to have created something which has been useful to so many people.
As I work on the next version of VoucherPress it would be really helpful if you could fill in this short survey. Many thanks for your time.
Have you ever wanted to give away vouchers, tickets, coupons or tokens on your website? If so this plugin is for you. You can create a voucher with whatever text you want, choosing the layout and font from a range of templates (you can also add your own templates). Vouchers can then be viewed, downloaded and printed from a specified URL.
There are shortcodes to add a link to a particular voucher, to show an unordered list of all your vouchers, or to show the registration for to request a restricted voucher.
You can require visitors to provide their name and email address to get a voucher. If an email address is required an email is sent to the address with a link to the voucher URL. Each voucher has a unique code, and vouchers that have an email address associated with them can only be used once, so once a registration-required voucher is downloaded it can’t be downloaded again.
Hooks
From version 1.1.2 the plugin also offers a selection of hooks which you can use to run your own custom code. The hooks are:
voucherpress_create
When a voucher is created, this hook returns the properties of the voucher. You can use it like this:
add_action( ‘voucherpress_create’, ‘my_voucherpress_create_function’ );
function my_voucherpress_create_function( $id, $name, $text, $description, $template, $require_email, $limit, $startdate, $expiry ) {
// do something here…
}
voucherpress_edit
When a voucher is edited, this hook returns the properties of the voucher. You can use it like this:
add_action( ‘voucherpress_edit’, ‘my_voucherpress_edit_function’ );
function my_voucherpress_edit_function( $id, $name, $text, $description, $template, $require_email, $limit, $startdate, $expiry ) {
// do something here…
}
voucherpress_register
When someone registers to download a voucher and an email is sent to them, this hook returns the voucher and the users details. You can use it like this:
add_action( ‘voucherpress_register’, ‘my_voucherpress_register_function’ );
function my_voucherpress_register_function( $voucher_id, $voucher_name, $user_email, $user_name ) {
// do something here…
}
voucherpress_download
When someone downloads a voucher, this hook returns the voucher and the users details. You can use it like this:
add_action( ‘voucherpress_download’, ‘my_voucherpress_download_function’ );
function my_voucherpress_download_function( $voucher_id, $voucher_name, $code ) {
// do something here…
}
The plugin also makes use of the __() function to allow for easy translation.
Thanks to Christian Serron (http://twitter.com/cserron) for the code to make the vouchers work in widgets (currently disabled, I’m working on this) and to Barry (http://www.betakeygiveaway.com/) for bug testing above and beyond the call of duty.
Shortcodes
There are four shortcodes available. The first shows a link to a particular voucher, and is in the format:
[voucher id=”123″]
The “id” parameter is the unique ID of the voucher. The correct ID to use is available in the screen where you edit the voucher.
You can also how the description after the link:
[voucher id=”123″ description=”true”]
The second shows a link to a voucher, but with a preview of the voucher (just the background image, no text) and the voucher name as the image alternate text:
[voucher id=”123″ preview=”true”]
And you can show the description after the preview as well:
[voucher id=”123″ preview=”true” description=”true”]
You can also show an unordered list of all your live vouchers using this shortcode:
[voucherlist]
And a list of all live vouchers with their descriptions:
[voucherlist description=”true”]
And you can also show the form for people to enter their name and email address if they wish to register for a restricted voucher:
[voucherform id=”123″]
The shortcodes for any voucher can be found on the edit screen for that voucher. Just click the ‘Shortcodes’ button.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「VoucherPress」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 0.4 | 0.5 | 0.6 | 0.5.1 | 0.5.2 |

延伸相關外掛(你可能也想知道)

  • PDF Invoices & Packing Slips for WooCommerce 》這個 WooCommerce 外掛可以自動為您的客戶在訂單確認電子郵件中添加 PDF 發票。包括一個基本模板(額外的模板可從 WP Overnight 購買),以及修改/建立自己的...。
  • PDF Embedder 》這款外掛程式可以上傳 PDF 檔案,並將它們直接嵌入到您網站的文章和頁面中。添加圖像一樣簡單!您的 PDF 檔案會自動調整到其自然大小和形狀。您還可以指定寬...。
  • PDF Viewer for Elementor 》此外掛可協助您快速且簡易地在 Elementor 中嵌入 PDF 文件。, 我們支援的 Elementor 版本為 v3+ 🙂。
  • Gravity PDF 》Gravity PDF 是使用 Gravity Forms 和 WordPress 創建動態數字 PDF 文件的最佳自助式解決方案。, 高度自定義的 PDF, 開箱即用的版本提供了四種高度自定義的 P...。
  • Google Doc Embedder 》Google Doc Embedder 允許您使用免費的 Google Docs Viewer 在您的 WordPress 頁面中嵌入多種文件類型,並允許行內檢視(並可選擇下載)各種流行的文件類型,...。
  • Print, PDF, Email by PrintFriendly 》GDPR(一般性資料保護條例), PrintFriendly Pro符合GDPR。 隱私政策。我們正在努力使免費版本符合GDPR,但目前因為嚴格的Cookie同意要求而不能符合。如果您...。
  • PDF.js Viewer 》透過 Gutenberg 區塊或簡單的縮略語,將 Mozilla 的 PDF.js Viewer 整合到您的網頁或文章中。PDF.js 是一個用於在瀏覽器中顯示 PDF 頁面的 JavaScript 函式庫...。
  • PDF Poster – PDF Embedder Plugin 》這個外掛可在文章、頁面、小工具區、頁面塊和主題模板中嵌入 PDF 檔案。非常易於使用、使用者友好且非常輕量的外掛。Gutenberg PDF Viewer 塊可用, 查看實況...。
  • Embed PDF Viewer 》透過oEmbed或以區塊的方式,將來自媒體庫或其他地方的PDF嵌入至object標籤或Google Doc Viewer當作備用選項。URL只需要是可以讓全球使用的連結即可。, 靈感來...。
  • WP Photo Album Plus 》此外掛不僅僅是一個相簿外掛,更是一個完整且高度自訂的多媒體內容管理和展示系統。, 特色包括:, , 任意數量的相簿,包含任意類型的多媒體檔案,以及子相簿,...。
  • Send PDF for Contact Form 7 》此外掛可在[Contact Form 7]中添加條件邏輯。, 使用此「透過聯絡表單發送 PDF 擴充套件」,您可以透過表單恢復資料,並將其插入您自行建立和準備的 PDF 中。,...。
  • PDF viewer for Elementor & Gutenberg 》「PDFjs Viewer for Elementor」外掛是一個強大的工具,可輕鬆將 PDF 檔案嵌入到您的 Elementor 頁面建構器頁面中。它專為 Elementor 設計,因此您可以輕鬆在...。
  • PDF Viewer Block for Gutenberg 》一個簡單、具有響應式設計且完全免費使用的古騰堡區塊,可以在您的網站上顯示 PDF 閱讀器。, 您可以輕鬆地即時配置該閱讀器的寬度、高度和對齊方式。, 相容性...。
  • PDF Viewer 》PDF Viewer 是一個 WordPress 外掛,允許您在網站上嵌入 PDF 文件,無需使用 Flash 外掛程式,僅依賴 JavaScript 來運作。這將使您的網站符合 HTML5 標準。此...。
  • PDF Image Generator 》這個外掛可以透過上傳 PDF 附件,將封面轉換為 JPEG,並作為文章縮略圖檔案附加。它還允許顯示縮略圖標誌和插入 PDF 鏈接與封面圖像到編輯器。, , 僅支援 Wor...。

文章
Filter
Apply Filters
Mastodon