ARMember provides very helpful conditional shortcodes.

All Conditional Shortcodes can be used with “arm_if” and “armNotif” shortcode.

{armif} .. {/armif} and {armNotif} .. {/armNotif}

Show / Hide specific content to specific member by using WordPress built-in conditional tags. Sometimes it’s necessary to allow everyone to access to your content ( e.g. everyone can land on a certain Post or Page and view it ), but maybe you need to hide ( protect ) a certain part of that content. Or, maybe you need to display something different to non-members.

example
{armif is_blog_index()} Content Goes Here {/armif}

{armNotif is_blog_index()} Content Goes Here {/armNotif}

ARMember_advanced_shortcode

Check List of available conditional shortcodes:

is_blog_index

This will check whether the current page is blog posts index page or not and according to that content will be shown.


is_home_page

This will be used to show content only if the current page/post is Home page.


is_single_post

This conditional tag can be used to display content only for the single posts (if the current post is post view/detail page). You can pass post parameter to indicate specific post type.


is_sticky_post

Checks if the current post is a Sticky Post meaning the “Stick this post to the front page” check box has been checked for the post, content between shortcode will be executed.


is_post_type_archive

This conditional tag will check if the query is for an archive page of a given post type(s).


is_page

This conditional tag can be used to show the content for any single page. This tag must be used BEFORE The Loop and as it does not work inside The Loop.


is_category

This tag will check if a Category archive page is being displayed. According to that you can add content to be displayed in page.


is_tag

This will check if a Tag archive page is being displayed.According to that you can add content to be displayed in page.


has_tag

This conditional tag will check if the current post has any of the given tags passed in parameter. The given tags are checked against the post’s tags term_ids, names and slugs. Tags given as integers will only be checked against the post’s tags term_ids.


is_taxonomy

Checks if a custom taxonomy archive page is being displayed, then content between shortcode will be executed. If the $taxonomy parameter is specified, this function will additionally check if the query is for that specific taxonomy. Note that is_tax() returns false on category archives and tag archives.


author_archive

Checks if an Author archive page is being displayed, then content between shortcode will be executed.


is_archive

This tag will check if any type of Archive page is being displayed. An Archive is a Category, Tag, Author or a Date based pages.


is_search

This conditional tag can be used to check if search result page archive is being displayed. If you want to show/hide content in accordance with search page than this tag will be useful.


is_multisite

This tag will be used to determine whether Multisite support is enabled or not. So you can show/hide content in accordance with multisite.


is_main_site

Check if site is main site of the network from the given site id passed in parameter. Yo can show/hide content for that specific site.


has_post_thumbnail

This tag will check if a post has a Featured Image (formerly known as Post Thumbnail) attached or not. So, you can show content conditionally when there is a featured image set for the post.


is_user_can

Checks if a user has capability or role, then content between shortcode will be executed. Similar to current_user_can(), but this function takes a user ID or object as its first parameter.


current_user_can

This conditional tag will check whether current user has particular capability/role or not. Based on that you can show/hide content to user.


current_user_can_for_blog

This will check whether current user has a capability or role for a given blog or not. You can pass blog ID as parameter to check if the current user has a capability for another blog on the network.


check_user_meta

This will check whether current user has correct meta_value based on operator passed as parameter. This will be useful when you want to display data only for those users, who are having some specific value in their user meta.
Default operator is EQUALSTO_N.
S = String Comparision
N = Numeric Comparision

check_user_meta($meta_key,$value,”EQUALSTO_S”,$user_id)


is_user_id

Checks if current user id matches specified id, then content between shortcode will be executed. This shortcode willnot work if ID is not passed.


is_username

Checks if current user name matches specified name, then content between shortcode will be executed. This shortcode willnot work if Name is not passed.

Membership sites can get pretty complicated, and not everyone needs the same things. ARMember offers features as add-ons so you can add only those functionalities according to requirement of site, making it easier to manage.

You can Activate or Deactivate add-ons from here. When you Activate any add-on, that add-on will be activated in plugin & its features will be displayed. Also you can directly navigate to configuration page by clicking on Configure button.

ARMember_addons

ARMember provides very helpful shortcodes. Check List of available shortcodes:

arm_form

This shortcode displays ARMember form ( Sign Up, Login, Forgot Password, Change Password ).

Possible Arguments:
id (required) ID of Signup/Login/Forgot Password/Change password Form
form_position set possible value from left, center or right Default: center
popup Display form in popup box. Default: false
link_type Link type. Possible options: link, button Default: link ( Work when popup option is true ).
link_title Link / Button text ( Work when popup option is true ).
overlay Popup box overlay ( Work when popup option is true ).
modal_bgcolor Popup box background color( Work when popup option is true ).
popup_height Popup box height ( Work when popup option is true ).
popup_width Popup box width ( Work when popup option is true ).
link_css Popup box Link / Button style ( Work when popup option is true ).
link_hover_css Popup box Link / Button hover style ( Work when popup option is true ).
assign_default_plan ID of any membership plan of type ‘FREE’.
(Note: This argument will be used only with sign up form and it will accept only free membership plan ID)
logged_in_message Custom Message that will be shown to user when he/she is already logged in and try to access registration, login, forgot password form.
(Note: If you will keep it blank, then nothing will be displyed to logged in user when they come to the page having registratin/login/forgot password form)

arm_edit_profile

This shortcode displays edit profile form.

Possible Arguments:
form_id (required) ID of the Registration form/ signup form
form_position set possible value from left, center or right Default: center
title Form title.
message Display message when member has been updated successfully.
social_fields Social networks name – which are added to your selected signup form.
view_profile (true/false) Display link directly to user Profile
view_profile_link View Profile – User profile link Label
avatar_field set possible value from yes or no Default: yes, If ‘yes’ include ‘avatar’ field.
profile_cover_field set possible value from yes or no Default: yes, If ‘yes’ include ‘profile cover’ field.

arm_social_login

This shortcode displays social network buttons.

Possible Arguments:
network Social network name(ex: facebook/twitter/linkedin/googleplush/vk), If network name is not given, then all active social network buttons are shown.
icon Image URL for the social network Icon

arm_setup

This shortcode displays Plan+Sign Up Form.

Possible Arguments:
id Membership Setup Wizard ID.
hide_title Whether to hide setup title or not. Default: false
popup Display form in popup box. Default: false
link_type Link type. Possible options: link, button Default: link ( Work when popup option is true ).
link_title Link / Button text ( Work when popup option is true ).
overlay Popup box overlay ( Work when popup option is true ).
modal_bgcolor Popup box background color( Work when popup option is true ).
popup_height Popup box height ( Work when popup option is true ).
popup_width Popup box width ( Work when popup option is true ).
link_css Popup box Link / Button style ( Work when popup option is true ).
link_hover_css Popup box Link / Button hover style ( Work when popup option is true ).
subscription_plan (paln_id) In any case if you want to display selected plan different than setup configuration, then you can add subscription_plan parameter in this shortcode.
hide_plans 0 or 1 (In any case if you want to hide plan selection area from configuration page, then you can add hide_plans parameter in this shortcode.)
payment_duration payment cycle’s order ID. for ex. if 3 is passed, then 3rd payment cycle of plan will remain selected by default. This argument will work only subscription_plan argument is passed.

arm_logout

This shortcode displays logout link/button.

Possible Arguments:
type Logout display type. Possible values: link, button. Default: link
label Link / Button Text. Default: Logout
user_info Show current user name. Possible values: true, false. Default: true
redirect_to Redirect URL after successful logout. Default: Home URL
link_css Link / Button style.
link_hover_css Link / Button hover style.

arm_close_account

This shortcode displays close account form.

Possible Arguments:
set_id Name of Created Login Form Set Name (Close Form Layout will be same as the passed Login form set id)

arm_member_transaction

This shortcode displays member’s payment transactions history.

Possible Arguments:
title Section Heading.
per_page Number of Records per Page
message_no_record Display Message if no records found.
label Payment History – Grid Column Label
Value Payment History – Grid Column Label Value

arm_account_detail

This shortcode displays member’s account details.

Possible Arguments:
Label arm_account_detail – Grid Column Label
Value arm_account_detail – Grid Column Value
social_fields Social Fields

arm_restrict_content

This shortcode displays/hides enclosed content to specific plan members.

Possible Arguments:
type Show or hide content. Default: hide
plan Plan Id or comma separated plan ids. Default: all

arm_membership

This shortcode displays current user’s membership details.

Possible Arguments:
title Title of grid Default: Current Membership
setup_id Membership Setup Wizard ID of which you want to inherit settings( except plans and payment gateways selected) in setup that will load when user clicks on Renew/Make Payment button.
membership_label Current Membership – Grid Column Label
membership_value Current Membership – Grid Column Label Value
display_renew_button true/false Default: false
renew_text Renew Button Text Default: Renew
make_payment_text Make Payment Button Text Default: Make Payment
renew_css Css for Renew Button
renew_hover_css Css for Renew Button Hover
display_cancel_button true/false Default: false
cancel_text Cancel Button Text Default: Cancel
cancel_css Css for Canel Button Hover
cancel_hover_css Css for Cancel Button Hover
cancel_message Message that will be displayed when user’s membership is cancelled successfully.
trial_active Display Trail Active Label
message_no_record Display Message if no records found.

arm_template

This shortcode displays members directory or member profile detail.

Possible Arguments:
id (required) Template ID.
type (required) Template Type. options: directory, profile

arm_conditional_redirection

This will provide conditional redirection based on plan along with plan comparison.

Possible Arguments:
condition (required) having/nothaving
plans (required) Id of plan
redirect_to Redirection URL Default: Home Page

arm_conditional_redirection_role

This will provide conditional redirection to user based on its role.

Possible Arguments:
condition (required) having/nothaving
arm_conditional_redirection_by_user_role_roles (required) Role of user
redirect_to Redirection URL Default: Home Page

arm_username

This shortcode displays currently logged in user’s username. This is accessible in any post, page, in widget area.

arm_displayname

This shortcode displays currently logged in user’s displayname. This is accessible in any post, page, in widget area.

arm_firstname_lastname

This shortcode displays currently logged in user’s first name and last name combination. This is accessible in any post, page, in widget area.

arm_if_user_in_trial

This shortcode will display enclosed content only if user is currently in trial period.

arm_not_if_user_in_trial

This shortcode will display enclosed content only if user is currently not in trial period.

arm_usermeta

This shortcode displays user’s specified meta information.

Possible Arguments:
meta (required) User Meta Key.

arm_user_badge

This shortcode displays specified user’s badge icons. If user_id is not specified, then it will display currently logged in user’s all badge icons.

Possible Arguments:
user_id (optional) User ID.

arm_user_planinfo

This shortcode displays specified user’s plan information such as start date, end date, etc.

Possible Arguments:
plan_id (required) Membership Plan ID.
plan_info (required) Possible arguments from arm_start_plan, arm_expire_plan, arm_trial_start, arm_trial_end, arm_grace_period_end, arm_user_gateway, arm_completed_recurring, arm_next_due_payment, arm_payment_mode, arm_payment_cycle.

Steps to Setup Membership For Your Website

  1. General Settings
  2. Setup Plan
  3. Set Payment Options
  4. Setup Forms
  5. Configure Plan + Signup Page
  6. Content Restriction / Drip Content

Let’s setup membership for your website :

  1. Configure plugin’s basic settings from general settings. To get detail about this section, please click here

  2. Then create free/paid subscription plans.Set description for your plan, select plan validity, select payment process if plan is paid. For all those created plans, you can define restriction related to content for the user of that particular plan.To get more detail about this section, please click here

  3. You must need to select at least one payment option if you want to charge user for paid plans. Most Popular Payment gateways like PayPal, Stripe, Authorize.Net, 2Checkout, and Bank Transfer Payment Method are supported. To get details about this section, please click here

  4. Then setup, registration form for new user registration. You can create a new registration form or you can use the default one.

    By clicking on Edit icon you will be able to modify form styling and settings with user friendly interface. To get details about this section, please click here

  5. Then create a new membership setup wizard with configure plan and signup option for new user subscription process. You will find options for plans, forms, payment gateways and coupons. Configure setup as per your need. Also you can add your custom styling for specific setup. After setting membership setup wizard, add setup shortcode in one of your front-end page to let member register in your site.

    You must need to add gateway for paid plans in order to get payment from new members.

    To get detail about this section, please click here

  6. Protect your website content from different plan members. You can add protection on your pages, posts, categories, navigation menus, custom post types, custom taxonomies etc. To get details about this section, please click here

Installation, Activation and Update!

You need to follow very simple steps for getting started with ARMember Plugin:

1) ARMember Installation:

  • Install Via Wordpress Uploader: In your WordPress admin, go to Plugins > Add New > Upload and upload the available ZIP of ARMemeber to install the Plugin.
  • Manual Installation :
    1. Download the latest version of the ARMemeber.
    2. Unzip the downloaded file to your computer.
    3. Upload the /armember/ directory to the /wp-content/plugins/ directory of your site.
    4. Activate the plugin through the ‘Plugins’ menu in WordPress.

2) ARMember License Activation :

After activating the plugin, you need to activate your license for support and to enable automatic upgrades. Also, without license activation, you will not be able to use any inbuilt addons of ARMember. A license key only be used for one installation of WordPress at a time.

Click on “General Settings” link for activate your license. You will see “Product License” section at very first on that page. To activate your license, you need to enter your Name, Email address and purchase code( Unique code obtained while purchased this product).

3) ARMember Update :

  • Auto Update : In your WordPress admin, go to Plugins > Installed Plugins to update ARMember Plugin directly from an available update link for ARMember.
  • Manual Update :
    1. Download the latest zip file for your plugin.
    2. Log into your WordPress site.
    3. Go to Plugins > Add New and click the Upload tab at the top of the page.
    4. Select the zip file with the new plugin version to install.
    5. Select “Yes” from the “Upgrade existing plugin?” option.
    6. Click “Install Now”.

    OR

    1. Download the latest version of the plugin.
    2. Unzip the downloaded file to your computer.
    3. Take Backup of armember directory
    4. Upload the new plugin source code /armember/ directory to the /wp-content/plugins/ directory of your site.
    5. Activate the plugin through the ‘Plugins’ menu in WordPress.

Related Video


ARMember installation/ Activation guide
ARMember installation / activation plugin steps