WordPress Woocommerce HiPay Wallet Pro plug-in

Content restriction

Woocommerce HiPay Wallet Pro allows you to restrict the content of pages or posts on your site. Follow the steps to restrict the pages and posts of your choice.

Woocommerce HiPay Wallet Pro plug-in
, , , ,
192

Restrict the content of pages or posts

Woocommerce HiPay Wallet Pro allows you to restrict the content of your pages or posts. To unlock the content of your pages or posts, the user must be in possession of the tokens which authorize the consultation of the page or post.

Restricting content with custom fields

To restrict the content of a page or a post, you must assign a value to each of the following two custom fields:

woohipaypro_restrict_fieldThis custom field must contain the Variable in database which stores the tokens of the user who wants to view the content.
woohipaypro_restrict_tokensThis custom field must contain the number of tokens to be spent and the duration of consultation of the content.

When editing a page or a post that you would like to restrict, fill in these custom fields to activate the content restriction, the custom fields are blank by default (leave them blank for the content you do not want restrict):

Woocommerce HiPay Wallet Pro: custom fields for content restriction

If the fields are not present on the page or the post whose content you want to restrict, load the custom fields via the drop-down list allowing this to be done:

Woocommerce HiPay Wallet Pro: load custom fields for content restriction

Edit custom field woohipaypro_restrict_tokens

The woohipaypro_restrict_tokens custom field allows you to define the number of tokens that will be debited to view the content, and the duration of viewing the content. As an example, here are some values ​​that you can enter:

20Debit of 20 tokens each time the content is viewed.
20|0Debit of 20 tokens for unlimited viewing of the content over time.
20|10-minDebit of 20 tokens for a content consultation of 10 minutes duration.
20|1-hDebit of 20 tokens for a content consultation of 1 hour duration.
20|1-dDebit of 20 tokens for a consultation of the content of a duration of 1 day.
20|1-mDebit of 20 tokens for a consultation of the content of a duration of 1 month.
20|1-yDebit of 20 tokens for a consultation of the content for a period of 1 year.

Once the two custom fields have been completed, go to the page or post whose content you have restricted in order to verify that the restriction is properly configured as desired. The page or the restricted post indicates the tokens label concerned, the necessary number of tokens to consult the content, and the duration of consultation which will be observed during the consultation of the content:

Woocommerce HiPay Wallet Pro: restricted content

Related posts

WordPress Woocommerce HiPay Wallet Pro plug-in
Woocommerce HiPay Wallet Pro shortcodes
You must be logged in to post a comment.
Menu