PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 120213
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v120213
260917 260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 111216 111220 120213 All 189 releases
s2member / includes / menu-pages / code-samples / current-user-registration-days.x-php

current-user-registration-days.x-php in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions 120213, at includes/menu-pages/code-samples/current-user-registration-days.x-php

22 lines 811 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.