| 1 |
<?php echo S2MEMBER_CURRENT_USER_REGISTRATION_DAYS; ?> |
| 2 |
This may output something like: 120 ( 120 days is approx 4 months ) |
| 3 |
|
| 4 |
In this example, the longer they've been registered ( for free or otherwise ), the more they get. |
| 5 |
|
| 6 |
<?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 30){ ?> |
| 7 |
Drip content to Users who've been registered for at least 30 days. |
| 8 |
<?php } ?> |
| 9 |
|
| 10 |
<?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 60){ ?> |
| 11 |
Drip content to Users who've been registered for at least 60 days. |
| 12 |
<?php } ?> |
| 13 |
|
| 14 |
<?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 90){ ?> |
| 15 |
Drip content to Users who've been registered for at least 90 days. |
| 16 |
<?php } ?> |
| 17 |
|
| 18 |
---- s2member Shortcode Equivalent ---- |
| 19 |
|
| 20 |
[s2Get constant="S2MEMBER_CURRENT_USER_REGISTRATION_DAYS" /] |
| 21 |
|
| 22 |
There is NO Shortcode equivalent for this logic yet. Coming soon. |