Hp drip

From HurryPress Documentation
Jump to: navigation, search
[hp_drip product_id="1,2,3" from_day=2 to_day=9]
  Some content to display if conditions matched
[hp_drip_else]
  Optional content to display if there is no match or user is not logged-in
[/hp_drip]


This shortcode allows to display content only if user has subscription to products (or just any subscription if no product_id passed), and if defined number of days passed. All attributes are optional.

product_id 
Can be product_id# or comma-separated list of product#
from_day 
Start day of subscription when content becomes available
to_day 
Last day of subscription when content still available
day 
Exact day of subscription when content is available
message 
Message to display if content is not available


Code Sample



[hp_drip] 
  if you have any subscription active, you will see this mesage
[hp_drip_else]
  if you see this message, you are either not logged in, or you do not have an active subscription
[/hp_drip]

[hp_drip from_day=2]
  There is content that is visible from 2-nd day. 
[hp_drip_else]
  This content is available from the second day of subscription only
[/hp_drip]

[hp_drip product_id=11 from_day=3 to_day=3]
  This content is visible only for those who subscribed to product#11 and only in third day of subscription.
[/hp]

[hp_drip product_id=22 day=3]
  This content is visible only for those who subscribed to product#22 and only in third day of subscription.
[/hp]