內容簡介
你可以在 WooCommerce 商店中添加商品,提供訂閱服務。然後,為了提供你的獨家內容,有一個短碼來檢查訂閱。
為商品選擇「月訂閱」類型,提供所需的訂閱期限。訂閱期限以月為單位,從今天算起,或者如果適用,則添加到活動訂閱中。WordPress 網站上每個使用者最多只能有一個訂閱。
對於內容,有一個短碼可以檢查訂閱。它使用開始標籤和結束標籤。你需要兩者 - 在標籤之間的內容將顯示(或不顯示)。有四個顯示內容的選項(「active」、「ended」、「never」和「inactive」)。可以在開始標籤中使用「subscription」參數傳遞選項。
更多資訊請參閱文件。
外掛標籤
開發者團隊
原文外掛簡介
You can add a product to your WooCommerce shop to offer a subscription. Then, to provide your exclusive content, there is a shortcode to check the subscription.
For the product, choose the “Monthly subscription” type and provide your desired subscription duration. The duration of the subscription is set in months and calculated from today, or added to active subscription if applicable. There can be up to one subscription per user on the WordPress site.
For the content, there is a shortcode to check the subscription. It uses an opening tag and a closing tag. You will need both – the content in between the tags will be shown (or not shown respectively). There are four options to display content („active“, „ended“, „never“ and „inactive“). The options are passed in the opening tag using the subscription parameter.
Further information is available in the documentation.
