Skip to navigation Skip to content
RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy
  • WC Account
  • WP-Members Update Profile
  • Home
  • About
    • Powerfully Simple
    • WP-Members Support Subscription
  • Blog
  • Cart
  • Checkout
  • Contact
    • Extension Support
  • copy current settings
  • Dashboard
  • Dashboard
  • Download Error
  • extension support
  • installation
  • logged in
  • logged in logged out
  • logged in menu
  • Login/Logout Menu Link
  • menu link
  • Passwords are not being included in Emails
  • PayPal Cart
  • Plugins
    • Simplify Free Checkout for WooCommerce
    • WP-Members Salesforce Web-to-Lead Integration
    • WP-Members Stop Spam Registrations
    • WP-Members
      • Extensions
        • Advanced Options Extension
        • Download Protect
        • Downloads
        • Invite Codes
        • Logged In Menus Extension
        • Registration Blacklist Extension
        • Security Extension
        • User List Module
        • User Tracking Extension
        • WP-Members MailChimp Integration
        • WP-Members s2Member User Conversion
        • WP-Members Subscription Extension with PayPal Integration
      • Quality Code
      • Quick Start Guide
      • World Class Support
      • WP-Members Documentation
      • WP-Members Documentation
        • API Functions
          • wpmem_activate_user()
          • wpmem_add_custom_dialog()
          • wpmem_add_custom_email()
          • wpmem_add_membership_to_post()
          • wpmem_add_membership_to_posts
          • wpmem_array_insert()
          • wpmem_create_membership
          • wpmem_create_username_from_email()
          • wpmem_current_post_id()
          • wpmem_current_url()
          • wpmem_deactivate_user()
          • wpmem_do_shortcode()
          • wpmem_email_to_user
          • wpmem_fields()
          • wpmem_form_field()
          • wpmem_form_label()
          • wpmem_get()
          • wpmem_gettext()
          • wpmem_get_block_setting()
          • wpmem_get_text()
          • wpmem_get_user_expiration()
          • wpmem_get_user_meta()
          • wpmem_get_user_products
          • wpmem_is_blocked()
          • wpmem_is_hidden()
          • wpmem_is_reg_page()
          • wpmem_is_user_activated()
          • wpmem_loginout()
          • wpmem_login_status()
          • wpmem_login_url()
          • wpmem_logout_link()
          • wpmem_mc_get_list_member()
          • wpmem_mc_process_user()
          • wpmem_profile_url()
          • wpmem_redirect_to_login()
          • wpmem_register_url()
          • wpmem_remove_user_membership()
          • wpmem_remove_user_product()
          • wpmem_set_as_logged_in()
          • wpmem_set_user_membership()
          • wpmem_set_user_product()
          • wpmem_update_user_role()
          • wpmem_user_data()
          • wpmem_user_has_access()
          • wpmem_user_has_role()
          • wpmem_user_is_current()
          • wpmem_user_pages()
          • wpmem_use_custom_dialog()
          • wpmem_validation_link_default_dialogs
          • WP_Members_Captcha
        • Copy Current Settings for Support
        • Customizing Emails
          • Custom Email Content
          • Email Format
          • Email Shortcodes
          • Set a Custom Email Address
        • Customizing Forms
          • Create a Custom Stylesheet
          • Login Form
          • Registration Form
          • Using the WordPress Customizer
          • Widget Login Form
        • Filter Hooks
          • wpmemstat_display_fields
          • wpmemstat_max_per_user
          • wpmemstat_user_droplist
          • wpmemstat_user_droplist_args
          • wpmemstat_user_exclude
          • wpmem_admin_profile_heading
          • wpmem_admin_style_list
          • wpmem_after_init
          • wpmem_auto_excerpt
          • wpmem_block
          • wpmem_captcha
          • wpmem_default_text
          • wpmem_default_text_strings
          • wpmem_email_appmod
          • wpmem_email_attachments
          • wpmem_email_filter
          • wpmem_email_headers
          • wpmem_email_newmod
          • wpmem_email_newreg
          • wpmem_email_notify
          • wpmem_email_repass
          • wpmem_email_shortcodes
          • wpmem_exclude_fields
          • wpmem_export_args
          • wpmem_export_fields
          • wpmem_exp_curl_options
          • wpmem_exp_experiod
          • wpmem_exp_expired_msg
          • wpmem_exp_ipn_defaults
          • wpmem_exp_paypal
          • wpmem_exp_sc_expmsg
          • wpmem_exp_success_msg
          • wpmem_fields
          • wpmem_field_sc_meta_keys
          • wpmem_field_sc_meta_keys
          • wpmem_forgot_link
          • wpmem_forgot_link_str
          • wpmem_get_action
          • wpmem_hidden_posts
          • wpmem_inc_changepassword_args
          • wpmem_inc_login_args
          • wpmem_inc_login_inputs
          • wpmem_inc_resetpassword_args
          • wpmem_localization_file
          • wpmem_login_failed
          • wpmem_login_failed_args
          • wpmem_login_failed_sb
          • wpmem_login_form
          • wpmem_login_form_args
          • wpmem_login_form_before
          • wpmem_login_form_defaults
          • wpmem_login_form_rows
          • wpmem_login_links
          • wpmem_login_redirect
          • wpmem_login_widget_form
          • wpmem_logout_link
          • wpmem_logout_redirect
          • wpmem_member_links
          • wpmem_menu_item_visibility
          • wpmem_msg_args
          • wpmem_msg_dialog
          • wpmem_msg_dialog_arr
          • wpmem_notify_addr
          • wpmem_notify_filter
          • wpmem_payment_form
          • wpmem_payment_form_msg
          • wpmem_plugins_file
          • wpmem_post_password
          • wpmem_post_products
          • wpmem_post_register_data
          • wpmem_post_update_data
          • wpmem_pre_init
          • wpmem_pre_register_data
          • wpmem_pre_update_data
          • wpmem_pre_validate_form
          • wpmem_product_restricted_msg
          • wpmem_pwdreset_args
          • wpmem_pwd_change_error
          • wpmem_pwd_reset_email_link
          • wpmem_query_where
          • wpmem_recaptcha
          • wpmem_recaptcha_score
          • wpmem_regchk
          • wpmem_register_data
          • wpmem_register_fields_arr
          • wpmem_register_form
          • wpmem_register_form_args
          • wpmem_register_form_before
          • wpmem_register_form_rows
          • wpmem_register_heading
          • wpmem_register_links
          • wpmem_register_redirect
          • wpmem_reg_link
          • wpmem_reg_link_str
          • wpmem_restricted_msg
          • wpmem_sb_login_args
          • wpmem_securify
          • wpmem_securify_comments
          • wpmem_settings
          • wpmem_sidebar_form
          • wpmem_sidebar_status
          • wpmem_sidebar_status_args
          • wpmem_tos_link_txt
          • wpmem_ul_profile_args
          • wpmem_ul_profile_rows
          • wpmem_ul_settings_args
          • wpmem_ul_strip_breaks
          • wpmem_ul_style_path
          • wpmem_ul_user_rows
          • wpmem_username_link
          • wpmem_username_link_str
          • wpmem_user_activated
          • wpmem_user_edit_heading
          • wpmem_user_upload_dir
          • wpmem_views_users
          • wpmem_widget_id
          • wpmem_widget_title
          • wpmem_{$form}_form_defaults
          • wpmem_{$page}_links_args
        • Getting Started
        • How to email your settings
        • How to install a beta release
        • How to Request Support
        • Login
        • Maintain a custom translation file
        • Managing Content
          • Custom Post Types
          • Restricting Pages
          • Restricting Posts
          • Show Excerpts
        • Managing Users
          • Edit Users
          • Export Users
          • Import Users
          • Search Users
        • Memberships
          • Membership Properties
          • Membership Levels
        • Menus
          • Individual Menu Item Settings
          • Logged In Menus
          • Login/Logout Menu Link
        • Pluggable Functions
        • Plugin Settings
          • Dialogs
          • Emails
          • Fields
          • New Feature Settings
            • Update the plugin to send a password reset link
          • Options
        • Recommended WordPress® Settings
        • Registration
          • Choosing Fields
          • Create a Registration Page
          • Moderating Registration
          • Removing Registration Options
          • Using CAPTCHA
        • Shortcodes
          • Field Shortcode
          • Form Shortcodes
          • Login Status Shortcodes
          • Memberships
          • Other Shortcodes
          • Page and Form Shortcodes
          • Shortcode Examples
        • User Profile
        • Version Rollback
        • Videos
        • WP-CLI Commands
        • WP-Members Action Hooks
        • WP-Members FAQs
          • Are files protected?
          • Can I implement a login box in the menu or a popup modal?
          • Domain not included in the password reset link
          • Email troubleshooting
          • Generic registration error: “There was an error processing the form”
          • Hidden vs. Restricted
          • Hosting Recommendations
          • How can I prevent registration spam?
          • How do I create a forgot password link in the login form?
          • How to add a shortcode
          • How to apply login redirects
          • How to hide the “Admin Bar” and restrict access to the back end
          • How to upgrade the password reset from legacy versions
          • Integrate user data
          • Password reset doesn’t show any fields
          • Passwords are not being included in Emails
          • The plugin isn’t blocking my content
          • Troubleshooting Really Simple Captcha
          • Why can’t users log in?
          • Why do I get a 403 Forbidden error when updating settings?
          • Why does reCAPTCHA v3 fail
          • Why don’t my changes show when testing?
        • WP-Members Screen Shots
        • Translation and Localization
          • Filter untranslated strings
          • Multi-language Considerations
      • WP-Members Support Options
    • WP-Members Advanced Options
      • WP-Members Advanced Options Documentation
        • Change WP Defaults
        • Change WP-Members Defaults
        • WooCommerce
        • BuddyPress
        • bbPress
        • ACF (Advanced Custom Fields)
        • Easy Digital Downloads
        • Filters
          • wpmem_adv_dashboard_capability
          • wpmem_adv_toolbar_capability
          • wpmem_adv_update_notify_args
        • Change Log
    • WP-Members Download Protect
      • WP-Members Download Protect Documentation
        • Installation
        • License Key
        • Settings
        • Upload Files
        • Download Tracking
        • Shortcodes
        • Filter Hooks
          • wpmem_dp_download_header_args
          • wpmem_dp_verify
        • WP CLI Commands
        • FAQs
        • Change Log
    • WP-Members Invite Codes
      • WP-Members Invite Codes Documentation
        • Setup
        • Importing Invite Codes
        • Upgrading
        • Filter Hooks
        • Action Hooks
          • wpmem_ic_code_used
          • wpmem_ic_validated
        • API Functions
          • wpmem_ic_add_code()
        • WP CLI Commands
        • Change Log
    • WP-Members MailChimp Integration
      • WP-Members MailChimp Integration Documentation
        • Installation
        • License Key
        • Options
          • Transient values
          • Add a webhook URL to Mailchimp
          • Add a checkbox for the subscribe field
        • Merge Fields
        • Interest Groups
        • Batch Operations
        • Webhooks
        • API Functions
        • Filter Hooks
          • wpmem_mc_interests
          • wpmem_mc_merge
          • wpmem_mc_subscribe_args
          • wpmem_mc_webhooks_allowed_types
          • wpmem_mc_webhooks_subscribe_user
          • wpmem_mc_webhook_action_function
        • Action Hooks
        • WP CLI Commands
        • Frequently Asked Questions
        • Change Log
        • MailChimp API Playground – deprecated
    • WP-Members Memberships for WooCommerce
      • WP-Members Memberships for WooCommerce Documentation
        • WooCommerce Account Settings
        • WooCommerce Product Settings
        • WP-Members WooCommerce Settings
        • Completed Order Email
        • Renewal Reminder Emails
        • Alternate expiration for variable memberships
        • Change Log
    • WP-Members PayPal Subscriptions
      • WP-Members PayPal Subscriptions Documentation
        • Registration and Payment Flow
        • Setup
        • Offering a Trial Period
        • IPN Log File
        • Manage Users
        • PayPal IPN Configuration
        • PayPal Developer Tools
        • Filter and Action Hooks
          • wpmem_exp_after_set_exp
          • wpmem_ipn_success
        • Templates
        • Customization Examples
        • Change Log
        • FAQs and Troubleshooting
          • Changing the IPN Listener type
          • PayPal Error: Things Don’t Appear to be Working at the Moment. Please Try Again Later.
          • PayPal payments not being captured
          • PayPal returns the message “Things don’t appear to be working at the moment”
    • WP-Members Text Editor
    • WP-Members Security
      • WP-Members Security Documentation
        • Setup
        • Options
        • Login Lockout
        • Ban List
        • Filter Hooks
          • wpmem_sec_prevent_concurrent_logins
          • wpmem_sec_pwd_change_required
        • Action Hooks
          • wpmem_sec_destroy_current_session
          • wpmem_sec_destroy_other_sessions
        • WP CLI Commands
        • Change Log
    • WP-Members User List
      • WP-Members User List Documentation
        • Installation
        • Settings
        • Display the List
        • Profile Page
        • Front-end Editing
        • Stylesheets
        • Filter Hooks
          • wpmem_ul_list_args
          • wpmem_ul_search_args
        • Tips and Tricks
        • Change Log
        • Manage license
    • WP-Members User Tracking
      • WP-Members User Tracking Documentation
        • Setup
        • Settings
        • Shortcodes
        • Filter Hooks
          • wpmemstat_max_per_page
          • wpmem_ut_display_exclude
        • Change Log
    • WordPass
      • WordPass Documentation
        • Strong Passwords
        • WordPass Security
  • Privacy Policy
  • Refund Policy
  • Register
  • Sign In
  • Sign In
  • Store
  • Terms of Service
  • WP-Members Profile
  • WP-Members Update Profile

Tag: do_shortcode

Posted on July 8, 2012May 13, 2019 by Chad Butler

Creating sidebar content with the logged in/out shortcodes

A powerful use of the WP-Members logged in/out shortcodes is using them to display “login specific” content in the sidebar.  This post will discuss how to set that up. Continue reading Creating sidebar content with the logged in/out shortcodes

Categories: Shortcodes, Tips and Tricks
Tags: do_shortcode, shortcodes, tips, widget_text

[wpmem_show_cart][wpmem_cart_quant]

Topics
  • Actions
  • Basics
  • Blog
  • Design
  • Download Protect
  • Filters
  • How I Did It
  • MailChimp
  • Release Announcements
  • Security
  • Shortcodes
  • Templates
  • Tips and Tricks
  • Uncategorized
  • User List
  • User Tracking
  • WooCommerce
Recent Posts
  • Shortcode Test
  • Logged in shortcode test
  • Use an image in the post restricted message
  • Remove the name# anchor from the ‘more’ link
  • Creating menus based on login status
Tags
actions add_action basics bug-fix css demo email filters forms free get_avatar get_currentuserinfo hooks is_user_logged_in mailchimp menus paypal pluggable-functions registration release-notes security shortcodes str_replace template_redirect the_content tips user-list wp-filters wpdb wpmem_admin_after_block_meta wpmem_admin_block_meta_save wpmem_block wpmem_login_form wpmem_login_form_rows wpmem_member_links wpmem_post_register_data wpmem_post_update_data wpmem_pre_register_data wpmem_register_data wpmem_register_form wpmem_register_form_rows wpmem_securify wpmem_sidebar_form wpmem_sidebar_status wp_mail

Ready to get started?

Join Today!

© RocketGeek 2025
Privacy PolicyBuilt with Storefront.