# s2member/110913/includes/menu-pages/code-samples/current-user-registration-days.php

s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls &amp; Member Access Subscriptions, version 110913. 22 lines.

- Page: https://pluginprobe.com/plugins/s2member/110913/code/includes/menu-pages/code-samples/current-user-registration-days.php
- Raw: https://pluginprobe.com/plugins/s2member/110913/raw/includes/menu-pages/code-samples/current-user-registration-days.php
- Modified: 2011-09-14T05:54:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/s2member/110913/code/includes/menu-pages/code-samples/current-user-registration-days.php#L10-L20`.

```php
<?php echo S2MEMBER_CURRENT_USER_REGISTRATION_DAYS; ?>
This may output something like: 120 ( 120 days is approx 4 months )

In this example, the longer they've been registered ( for free or otherwise ), the more they get.

<?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 30){ ?>
	Drip content to Users who've been registered for at least 30 days.
<?php } ?>

<?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 60){ ?>
	Drip content to Users who've been registered for at least 60 days.
<?php } ?>

<?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 90){ ?>
	Drip content to Users who've been registered for at least 90 days.
<?php } ?>

---- s2member Shortcode Equivalent ----

[s2Get constant="S2MEMBER_CURRENT_USER_REGISTRATION_DAYS" /]

There is NO Shortcode equivalent for this logic yet. Coming soon.
```
