Hp subscription data

From HurryPress Documentation
Jump to: navigation, search
[hp_subscription_data id=product_id# field=xxx]


This shortcode allows to insert current user subscription status for product#. You may specify more than one product# comma-separated, for example id=11,22,33. If id attribute is not specified it will display information for all available subscriptions, which works fine for most websites.

Just replace xxx to one from available fields:

start_date 
Start date of subscription
expire_date 
Expiration date of subscription
days 
Days# when subscription is active
status 
Text: Active, Expired or Pending


Code Sample



Your first subscription started [hp_subscription_data field=start_date].

Your subscription for product 11 and | or product 22 expires [hp_subscription_data id=11,22 field=expire_date]