MemberMouse Advanced Decision Shortcodes
MemberMouse advanced decision shortcodes based on user's membership or associated bundles with options for current access, future access or forbidden access. The shortcodes content is displayed considering either the date when user subscribed or the number of days as member.
by MemberFix · github.com/memberfix/wp-membermouse-advanced-decision-shortcodes · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/memberfix/wp-membermouse-advanced-decision-shortcodes/archive/refs/heads/main.zipImportant Notice:
This plugin is provided "as is" and is not officially supported. While we strive to ensure its functionality and compatibility, we make no guarantees regarding its performance or reliability. Users are encouraged to test the plugin thoroughly before using it in a production environment.
By using this plugin, you acknowledge that:
The plugin may have bugs, issues, or limitations that could affect its performance. We are not responsible for any damage or loss that may result from using this plugin. We do not offer any formal support or updates for this plugin. Any use of this plugin is at your own risk. Thank you for understanding.
membership based
Example shortcodes:
[mm_adv_access_decision membershipid='7' days='10' date='7/1/2019' access='true']
This content will be visible if either of these is true:
- User has membership ID of 7 and subscribed to the website before the 1st of July 2019.
- User has membership ID of 7 and the number of days since the user subscribed to the website is greater or equal to 10.
- User has membership ID of 7 and subscribed to the website before the 1st of July 2019 and the number of days since the user subscribed to the website is greater or equal to 10.
[/mm_adv_access_decision]
[mm_adv_access_decision membershipid='7' date='7/1/2019' access='false']
This content will be visible if this is true:
User has membership ID of 7 and subscribed to the website after the 1st of July 2019.
[/mm_adv_access_decision]
[mm_adv_access_decision membershipid='7' days='10' date='7/1/2019' access='future']
When access='future' then you can use a content like this one: "You will have access to this content in [X] days."
The above content will be visible if this is true:
User has membership ID of 7 and subscribed to the website after the 1st of July 2019 and the number of days since the user subscribed to the website is smaller than 10. In this case, [X] will be replaced with the remaining number of days till 10.
[/mm_adv_access_decision]
bundle based
[mm_adv_access_decision bundleid='7' days='10' date='7/1/2019' access='true']
This content will be visible if either of these is true:
- User has bundle ID of 7 assigned before the 1st of July 2019.
- User has bundle ID of 7 assigned and the number of days since the bundle was assigned is greater or equal to 10.
- User has bundle ID of 7 assigned before the 1st of July 2019 and the number of days since the bundle was assigned is greater or equal to 10.
[/mm_adv_access_decision]
[mm_adv_access_decision bundleid='7' date='7/1/2019' access='false']
This content will be visible if this is true:
User has bundle ID of 7 assigned and the bundle was assigned after the 1st of July 2019.
[/mm_adv_access_decision]
[mm_adv_access_decision bundleid='7' days='10' date='7/1/2019' access='future']
When access='future' then you can use a content like this one: "You will have access to this content in [X] days."
The above content will be visible if this is true:
User has bundle ID of 7 assigned and the bundle was assigned after the 1st of July 2019 and the number of days since the bundle was assigned is smaller than 10. In this case, [X] will be replaced with the remaining number of days till 10.
[/mm_adv_access_decision]