ARmember Shortcode Library

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_positionset possible value from left, center or right Default: center
popupDisplay form in popup box. Default: false
link_typeLink type. Possible options: link, button Default: link ( Work when popup option is true ).
link_titleLink / Button text ( Work when popup option is true ).
overlayPopup box overlay ( Work when popup option is true ).
modal_bgcolorPopup box background color( Work when popup option is true ).
popup_heightPopup box height ( Work when popup option is true ).
popup_widthPopup box width ( Work when popup option is true ).
link_cssPopup box Link / Button style ( Work when popup option is true ).
link_hover_cssPopup box Link / Button hover style ( Work when popup option is true ).
assign_default_planID 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_messageCustom 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_profile_detail

This shortcode displays edit profile form.

Possible Arguments:
form_id (required)Set ID of the Profile form
form_positionSet possible value from left, center or right
Default: center

arm_social_login

This shortcode displays social network buttons.

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

arm_setup

This shortcode displays Plan+Sign Up Form.

Possible Arguments:
idMembership Setup Wizard ID.
hide_titleWhether to hide setup title or not. Default: false
popupDisplay form in popup box. Default: false
link_typeLink type. Possible options: link, button Default: link ( Work when popup option is true ).
link_titleLink / Button text ( Work when popup option is true ).
overlayPopup box overlay ( Work when popup option is true ).
modal_bgcolorPopup box background color( Work when popup option is true ).
popup_heightPopup box height ( Work when popup option is true ).
popup_widthPopup box width ( Work when popup option is true ).
link_cssPopup box Link / Button style ( Work when popup option is true ).
link_hover_cssPopup box Link / Button hover style ( Work when popup option is true ).
subscription_plan(plan_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_plans0 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_durationpayment 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:
typeLogout display type. Possible values: link, button. Default: link
labelLink / Button Text. Default: Logout
user_infoShow current user name. Possible values: true, false. Default: true
redirect_toRedirect URL after successful logout. Default: Home URL
link_cssLink / Button style.
link_hover_cssLink / Button hover style.

arm_close_account

This shortcode displays close account form.

Possible Arguments:
set_idName 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:
titleSection Heading.
per_pageNumber of Records per Page
message_no_recordDisplay Message if no records found.
labelPayment History – Grid Column Label
ValuePayment History – Grid Column Label Value

arm_account_detail

This shortcode displays member’s account details.

Possible Arguments:
Labelarm_account_detail – Grid Column Label
Valuearm_account_detail – Grid Column Value
social_fieldsSocial Fields

arm_restrict_content

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

Possible Arguments:
typeShow or hide content. Default: hide
planPlan Id or comma separated plan ids. Default: all

arm_membership

This shortcode displays current user’s membership details.

Possible Arguments:
titleTitle of grid Default: Current Membership
setup_idMembership 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_labelCurrent Membership – Grid Column Label
membership_valueCurrent Membership – Grid Column Label Value
display_renew_buttontrue/false Default: false
renew_textRenew Button Text Default: Renew
make_payment_textMake Payment Button Text Default: Make Payment
renew_cssCss for Renew Button
renew_hover_cssCss for Renew Button Hover
display_cancel_buttontrue/false Default: false
cancel_textCancel Button Text Default: Cancel
cancel_cssCss for Canel Button Hover
cancel_hover_cssCss for Cancel Button Hover
cancel_messageMessage that will be displayed when user’s membership is cancelled successfully.
display_update_card_buttonDisplay button to allow user to update their subscription card detail. Default: false
update_card_textAdd/Update text for Update Card button.
update_card_cssAdd CSS Properties for styling your Update Card button.
update_card_hover_cssAdd CSS Properties for styling your Update Card button on hover on it.
trial_activeDisplay Trail Active Label
message_no_recordDisplay Message if no records found.

arm_purchased_paid_post_list

This shortcode displays current user purchased paid post details (Pay Per Post Shortcode).

Possible Arguments:
titleTitle of grid Default: Purchased Paid Post List
setup_idPaid Post Setup Wizard ID of which you want to inherit settings( except payment gateways selected) in setup that will load when user clicks on Renew/Make Payment button.
membership_labelPurchased Paid Post – Grid Column Label
membership_valuePurchased Paid Post – Grid Column Label Value
display_renew_buttontrue/false Default: false
renew_textRenew Button Text Default: Renew
make_payment_textMake Payment Button Text Default: Make Payment
renew_cssCSS for Renew Button
renew_hover_cssCSS for Renew Button Hover
display_cancel_buttontrue/false Default: false
cancel_textCancel Button Text Default: Cancel
cancel_cssCSS for Cancel Button Hover
cancel_hover_cssCSS for Cancel Button Hover
cancel_messageMessage that will be displayed when user’s paid post is canceled successfully.
message_no_recordDisplay Message if no records found.

arm_paid_post_member_transaction

This shortcode displays member’s paid post transaction details (Pay Per Post Shortcode).

Possible Arguments:
titleSection Heading.
per_pageNumber of Records per Page
message_no_recordDisplay Message if no records found.
labelPaid Post Payment History – Grid Column Label
ValuePaid Post Payment History – Grid Column Label Value

arm_paid_post_buy_now

This shortcode displays paid post buy now button for the post (Pay Per Post Shortcode).

Possible Arguments:
labelBuy Now Button/Link Label. Default: Buy Now
typeBuy now display link type. “link” or “button” Default:link
redirect_urlRedirect URL( Optional ) If you don’t add URL at above textbox then buynow page will be set from ARMember -> General Settings -> Page Setup page.
link_cssLink / Button custom CSS style.
link_hover_cssLink / Button hover custom CSS style.

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_toRedirection 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_toRedirection URL Default: Home Page

arm_userid

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

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.