PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 261001
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v261001
261011 261001 260927 260917 260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 All 192 releases
s2member / src / includes / menu-pages / code-samples / current-user-downloads-allowed-is-unlimited.x-php

current-user-downloads-allowed-is-unlimited.x-php in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions 261001, at src/includes/menu-pages/code-samples/current-user-downloads-allowed-is-unlimited.x-php

13 lines 909 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 You are allowed to download <?php echo (S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_IS_UNLIMITED) ? 'unlimited' : S2MEMBER_LEVEL2_FILE_DOWNLOADS_ALLOWED; ?> files
2 every <?php S2MEMBER_LEVEL2_FILE_DOWNLOADS_ALLOWED_DAYS; ?> days.
3
4 ---- s2Member Shortcode Equivalent (Requires s2Member Pro) ------------
5
6 You are allowed to download [s2If php="S2MEMBER_CURRENT_USER_DOWNLOADS_ALLOWED_IS_UNLIMITED"]unlimited
7 [else][s2Get constant="S2MEMBER_LEVEL2_FILE_DOWNLOADS_ALLOWED" /][/s2If] files
8 every [s2Get constant="S2MEMBER_LEVEL2_FILE_DOWNLOADS_ALLOWED_DAYS" /] days.
9
10 **NOTE** The use of `[s2If php=""]` and `[else]` requires s2Member Pro.
11 **NOTE** Arbitrary PHP code (via [s2If php=""]) will only work if you enable this functionality.
12 Please visit `Dashboard → s2Member → Restriction Options → Simple Shortcode Conditionals`
13 to set your preferences and enable `[s2If php=""]` when s2Member Pro is installed.