PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 111105
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v111105
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 / api-mop-vars.x-php

api-mop-vars.x-php in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions 111105, at includes/menu-pages/code-samples/api-mop-vars.x-php

55 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 -----------------------------------------------------------------------------------------------------------
2 Example redirection links, including many of the possible MOP Variable variations.
3 -----------------------------------------------------------------------------------------------------------
4
5 .../membership-options-page/?_s2member_seeking[post]=369&_s2member_req[sp]=369
6 .../membership-options-page/?_s2member_seeking[page]=559&_s2member_req[sp]=559
7 .../membership-options-page/?_s2member_seeking[page]=587&_s2member_req[level]=1
8 .../membership-options-page/?_s2member_seeking[post]=545&_s2member_req[level]=2
9 .../membership-options-page/?_s2member_seeking[catg]=698&_s2member_req[level]=4
10 .../membership-options-page/?_s2member_seeking[ptag]=447&_s2member_req[level]=3
11 .../membership-options-page/?_s2member_seeking[page]=887&_s2member_req[ccap]=music
12 .../membership-options-page/?_s2member_seeking[post]=871&_s2member_req[ccap]=videos
13 .../membership-options-page/?_s2member_seeking[file]=example.zip&_s2member_req[level]=1
14 .../membership-options-page/?_s2member_seeking[ruri]=aHR0cDov...&_s2member_req[level]=1
15
16 -----------------------------------------------------------------------------------------------------------
17
18 Here is a breakdown on each of these Variables:
19
20 * `_s2member_seeking[post|page|catg|ptag|file|ruri]` = ( Post ID, Page ID, Category ID, Tag ID, File, URI )
21 Tip: `_s2member_seeking[file]` = ( File path, relative to /s2member-files/, or your Amazon® S3 Bucket )
22 Tip: `_s2member_seeking[ruri]` = ( A base 64 encoded URI; only applies w/ Membership URI Restrictions )
23 Tip: These array elements are mutually exclusive: [post|page|catg|ptag|file|ruri].
24 Only ONE of these array elements ( i.e. Content Types ) will be specified.
25
26 * `_s2member_req[level]` = a Membership Level # required for access ( only applies to Membership Level Access )
27 * `_s2member_req[ccap]` = a Custom Capability required for access ( only applies to Custom Capability Restrictions )
28 * `_s2member_req[sp]` = a Specific Post/Page ID required ( only applies to Specific Post/Page Access Restrictions )
29 Tip: `_s2member_req[level|ccap|sp]` are mutually exclusive Requirement Types.
30 Only ONE of these three elements will be passed in combination with:
31 `_s2member_seeking[post|page|catg|ptag|file|ruri]`.
32
33 -----------------------------------------------------------------------------------------------------------
34
35 Additional Variables that might be useful to developers:
36
37 * `_s2member_seeking[_uri]` = ( A base 64 encoded URI; the URI they were originally seeking )
38 Tip: this is ALWAYS passed through, regardless of which Content Type was protected.
39
40 * `_s2member_seeking[type]` = ( A string. One of: post|page|catg|ptag|file|ruri )
41 Tip: this is ALWAYS passed through, regardless of which Content Type was protected.
42
43 * `_s2member_req[type]` = ( A string. One of: level|ccap|sp )
44 Tip: this Requirement Type Variable is ALWAYS passed through.
45
46 * `_s2member_res[type]` = ( A string. One of: post|page|catg|ptag|file|ruri|ccap|sp|sys )
47 Tip: Actual Restriction Type that's preventing access; may differ from `_s2member_seeking[type]`.
48 Tip: Restriction Type `sys` Systematic ( i.e. something s2Member protects automatically )
49 Tip: Restriction Type `ccap` represents Custom Capability Restrictions by s2Member.
50 Tip: Restriction Type `sp` represents Specific Post/Page Access Restrictions.
51 Tip: this Restriction Type Variable is ALWAYS passed through.
52
53 -----------------------------------------------------------------------------------------------------------
54
55 * The use of MOP Vars is 100% completely optional ( for advanced site owners ).