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 of subscription
Expiration date of subscription
Days# when subscription is active
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]