• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Search for "short code"

Search Results for: short code

wpmem_member_links

The wpmem_member_links filter hook allows you to filter the links that are shown on the member-area shortcode page when the user is in a logged in state.  By default, this will show a bulleted list of links to update registration data and change password.

You can use this filter to append to this list, create content before or after it, or change it completely.

IMPORTANT: If you choose to change the link list completely, be certain that you are careful to include the links for updating information and changing password in some way in your returned filtered content. Otherwise your users will not be able to access these functions.

add_filter( 'wpmem_member_links', function ( $string ) {

	// Original link output comes in as a $string.
	// You can add to it before or after, 
	// or drop it altogether.

	$string = "<p>Before the original links</p>" . $string;

	$string = $string . "<p>After...</p>";

	return $string;
});

Filter Hooks

WP-Members provides a number of filters that let you get more control over how the plugin works with your site.  This feature makes this one of the most extensible members/post restriction plugins available.

This page is a complete list of filter hooks available in the plugin (find action hooks on this page).  For specific details about a particular hook, including parameters passed to it, click through for more specific data and links to examples.  Hooks available in new versions indicate the WP-Members version number they were introduced in (which may require you to upgrade if you intend to use the hook).

Note: All WP-Members hooks begin with wpmem_ in order to differentiate them from WP hooks and any other hooks that may be in your theme or other plugins.

Blocking:

  • wpmem_settings
  • wpmem_regchk
  • wpmem_block
  • wpmem_block_args
  • wpmem_securify
  • wpmem_securify_comments
  • wpmem_user_has_access

Redirection:

  • wpmem_login_redirect
  • wpmem_logout_redirect
  • wpmem_register_redirect

Content:

  • wpmem_auto_excerpt

Dialogs and Messages:

  • wpmem_logout_link
  • wpmem_login_links_args
  • wpmem_login_links
  • wpmem_register_links_args
  • wpmem_register_links
  • wpmem_member_links_args
  • wpmem_member_links
  • wpmem_restricted_msg
  • wpmem_msg_dialog_arr
  • wpmem_msg_defaults
  • wpmem_msg_dialog
  • wpmem_login_failed_args
  • wpmem_login_failed
  • wpmem_status_msg_args
  • wpmem_default_text
  • wpmem_product_restricted_msg

Widget:

  • widget_title
  • wpmem_widget_title
  • wpmem_widget_id
  • wpmem_login_widget_args
  • wpmem_login_widget_form_rows
  • wpmem_login_widget_hidden_fields
  • wpmem_login_widget_forgot_link_str
  • wpmem_login_widget_reg_link_str
  • wpmem_login_widget_form
  • wpmem_login_widget_login_failed
  • wpmem_login_widget_status_args
  • wpmem_login_widget_status

Login & Change/Reset Password Form:

  • wpmem_login_form_defaults
  • wpmem_changepassword_form_defaults
  • wpmem_resetpassword_form_defaults
  • wpmem_forgotusername_form_defaults
  • wpmem_login_form_args
  • wpmem_login_form_rows
  • wpmem_login_hidden_fields
  • wpmem_login_form_buttons
  • wpmem_login_form_before
  • wpmem_login_form
  • wpmem_forgot_link
  • wpmem_forgot_link_str
  • wpmem_reg_link
  • wpmem_reg_link_str
  • wpmem_username_link
  • wpmem_username_link_str
  • wpmem_password_change_error

Register & User Profile Update Form:

  • wpmem_fields
  • wpmem_register_form_args
  • wpmem_reg ister_form_rows
  • wpmem_tos_link_txt
  • wpmem_recaptcha
  • wpmem_register_captcha_row
  • wpmem_register_hidden_fields
  • wpmem_register_form_buttons
  • wpmem_register_heading
  • wpmem_user_edit_heading
  • wpmem_register_form_before
  • wpmem_register_form
  • wpmem_captcha
  • wpmem_recaptcha_url
  • wpmem_recaptcha_score
  • wpmem_rs_captcha_folder
  • wpmem_rs_captcha_rows

Form Submission:

  • wpmem_pre_validate_form
  • wpmem_register_data
  • wpmem_pwdreset_args
  • wpmem_exclude_fields

Email:

  • wpmem_email_filter
  • wpmem_email_newreg
  • wpmem_email_newmod
  • wpmem_email_appmod
  • wpmem_email_repass
  • wpmem_email_notify
  • wpmem_email_headers
  • wpmem_email_attachments
  • wpmem_email_shortcodes
  • wpmem_notify_addr
  • wpmem_notify_filter
  • wpmem_email_send_args

Admin:

  • wpmem_admin_tabs
  • wpmem_admin_style_list
  • wpmem_admin_profile_heading
  • wpmem_admin_profile_field
  • wpmem_admin_profile_update
  • wpmem_admin_{$post_type}_meta_title
  • wpmem_export_fields
  • wpmem_export_args
  • wpmem_user_export_header
  • wpmem_user_export_row
  • wpmem_dialogs

Miscellaneous:

  • wpmem_plugins_file
  • wpmem_user_upload_dir
  • wpmem_localization_file
  • wpmem_localization_dir
  • wpmem_dropin_folder
  • wpmem_menu_item_visibility

Action Hooks:

  • wpmem_pre_init
  • wpmem_after_init
  • wpmem_get_action
  • wpmem_pwd_change
  • wpmem_pwd_reset
  • wpmem_register_redirect
  • wpmem_pre_register_data
  • wpmem_post_register_data
  • wpmem_pre_update_data
  • wpmem_post_update_data
  • wpmem_user_activated
  • wpmem_pre_admin_init
  • wpmem_after_admin_init
  • wpmem_admin_do_tab
  • wpmem_admin_after_block_meta
  • wpmem_admin_block_meta_save

WP-Members Documentation

Getting Started

Recommended WordPress Settings

Plugin Settings

  • Options

  • Fields

  • Dialogs

  • Emails

Managing Content

  • Restricting Posts

  • Restricting Pages

  • Show Excerpts

  • Custom Post Types

Managing Users

Registration

  • Choosing Fields

  • Create a Registration Page

  • Moderating Registration

  • Using CAPTCHA

  • Turn Off Registration

User Profile Area

Membership Products

Menus

  • Individual Menu Items

  • Clone Menu Locations

  • Login/Logout Menu Link

Customizing Emails

  • Set a Custom Email Address

  • Custom Email Content

  • Email Format

  • Email Shortcodes

  • Email Troubleshooting

Customizing Forms

  • Create a Custom Stylesheet

  • Using the WordPress Customizer

  • Login Form HTML

  • Register Form HTML

  • Widget Login Form HTML

Shortcodes

  • Pages and Forms

  • Login Status

  • Fields

  • Email

  • Other

API Functions

Filter and Action Hooks

FAQs

  • Email Troubleshooting

  • How to add a shortcode

  • How to apply login redirects

  • Why can’t users log in?

  • Why does reCAPTCHA v3 fail?

  • How to prevent registration spam

  • Are files protected from download?

  • Why do I get a 403 error when I try to update settings?

  • How do I use code snippets?

  • I have updated {something}, why doesn’t it display when I test?

Demo Videos

How to Request Support

How to Copy Current Settings for Support

Welcome to RocketGeek Interactive

FREE!

Access to the WP-Members online user manual is always free for everyone!

Exclusive Plugin Extensions

Site members can download exclusive extension modules for WP-Members!

 

What’s on the site?

To begin accessing premium content, register and complete payment. Articles can be found in various ways – looking at categories found in the sidebar menu, viewing the blog, in some cases, such as the Users Guide, related articles will be shown at the end of the content.

When you are not logged in, article titles will indicate whether the content is free for all users, or is members only content.

Some FREE Content to Get You Started:

WordPress Basics
  • What Is The “more” Tag?
  • The functions.php File
  • WordPress Best Practices
  • Customizing WP-Members With Pluggable Functions
  • Using Anonymous Functions for Filters
WP-Members Styles
  • Set a Custom Stylesheet
  • Load a Custom Stylesheet
  • Customizing form CSS: Custom login form with side-by-side inputs
  • Customizing form CSS: Setting maximum form width
  • Customizing form CSS: Adjusting floated form elements
WP-Members How-To
  • Add an avatar to the sidebar login
  • Blocking Custom Post Types
  • Dynamic redirect to referrer in login
  • Disable the WordPress toolbar
  • Change the submit button on the registration form to ‘Register’
Some Tips & Tricks
  • Redirect a user on first login
  • Creating menus based on login status
  • Redirecting WordPress urls for login, logout, and registration
  • Remove an unparsed wpmem_txt shortcode
  • Workaround for front end login when using CAPTCHA on the WP login form

 

From the Members Only Code Library:

Filters

  • Using Anonymous Functions for Filters and Actions
  • Send new user activation link with manual admin approval
  • Handling form layout when using a builder plugin
  • Customizing form fields in WP-Members 3.1.7
  • Change the WordPress new user notification using the wp_mail filter
  • Integrating with Easy Digital Downloads
  • Do not modify plugin files
  • Add a file upload field to attach to admin notification email during registration
  • Creating an optgroup tag in a dropdown list
  • Make MailChimp subscribe field a hidden field in the WP-Members registration form
  • Add Really Simple CAPTCHA to the Login Form
  • Creating a login link with redirect back to the original page
  • Log in with Email or Username
  • Add current password confirmation to change password form
  • Add a meta box in the post editor for blocking custom post types
  • Blocking Custom Post Types
  • Add front end field sorting to the User List
  • Move the Username Field in the Registration Form
  • Request additional fields on user profile
  • Customize form fields based on specific page or post criteria
  • Capturing user data with custom hidden fields
  • Remove all widgets except the WP-Members login from the sidebar
  • Blocking Content from Builder Plugins
  • How to restrict categories to a defined user group
  • Integrating Really Simple CAPTCHA
  • Multiple Selection Checkboxes
  • Add a Date of Birth Field with Dropdown Selections for Month, Day, and Year
  • Modifying default error messages that are not editable in the dialogs tab
  • Reset password with just email
  • A random word and number combination for passwords
  • Creating menus for different user roles
  • Multiple Selection Checkboxes – Add A Section Heading (Advanced)
  • Multiple Selection Checkboxes – Add A Section Heading (Basic)
  • Add a sortable date user registered column to the Users > All Users page
  • Adding WP-Members Columns to the User Admin Panel
  • Add a privacy policy or a terms of service in a textarea field
  • Automatically block child pages
  • Automatically clone theme menu location to display different menus based on login status
  • Sidebar status highlight username
  • Removing items from the menu based on login status
  • Creating menus based on login status – alternate version
  • Multiple Selection Checkboxes
  • Fighting registration spam with a honey pot
  • Dynamic redirect to referrer in login
  • Add a first name greeting to the new registration email
  • Adding the WP display_name field to the WP-Members user profile update form
  • Move form label for checkboxes with a filter
  • Add a helpful dialog above the password reset form
  • Blocking custom post types
  • Create different styles for “success” and “error” messages
  • Simple MailChimp merge field example
  • Add password and email confirmation to the registration process
  • Redirecting WordPress urls for login, logout, and registration
  • How to add multiple user levels by category
  • Adding user display name to the registration form
  • User redirection on logout
  • Add section headings to the registration form
  • Adding shortcodes to other locations
  • Sidebar status filter advanced demo
  • Bootstrap sidebar login example for non-Bootstrap themes
  • Bootstrap sidebar login
  • Using wpmem_block to block a category
  • Show optional form fields only on user update
  • Customize the reCAPTCHA style
  • Remove the login form from completed registration
  • User Settings Page
  • Bootstrap icons for the login form
  • Remove the login form from the main content area
  • Easier random password filter
  • Sidebar login filter advanced example
  • Add an avatar to the sidebar login
  • Post restricted message based on specific post/page or group
  • Member Links Filter Advanced Demo

Tips & Tricks

  • Why you should NOT use do_shortcode()
  • Using Anonymous Functions for Filters and Actions
  • Handling form layout when using a builder plugin
  • Change the WordPress new user notification using the wp_mail filter
  • Integrating with Easy Digital Downloads
  • Add a file upload field to attach to admin notification email during registration
  • Creating an optgroup tag in a dropdown list
  • Add Really Simple CAPTCHA to the Login Form
  • How to hide posts completely
  • Configure the PayPal extension for multi-unit pricing
  • Replace the default login and registration forms with buttons
  • Create a Child Theme
  • Customizing form CSS: Login widget with inline inputs
  • Customizing form CSS: Custom login form with side-by-side inputs
  • Customizing form CSS: Setting maximum form width
  • Customizing form CSS: Adjusting floated form elements
  • Login form honey pot
  • Make WP-Members fields in the users screen sortable
  • Add a datepicker to the registration form
  • Add a separator line of text in the registration form (wpmem_register_form_rows version)
  • Configure the PayPal extension for multi-tiered pricing
  • Customize form fields based on specific page or post criteria
  • Remove all widgets except the WP-Members login from the sidebar
  • Blocking Content from Builder Plugins
  • How to restrict categories to a defined user group
  • Confirm password at registration and have password meet specific criteria
  • Multiple Selection Checkboxes
  • User List profile layout tricks
  • Create a Table Style Layout for the User List Extension
  • User List layout tricks
  • Modifying default error messages that are not editable in the dialogs tab
  • Use an invitation code with the PayPal subscription extension
  • Multiple Selection Checkboxes – Add A Section Heading (Advanced)
  • Multiple Selection Checkboxes – Add A Section Heading (Basic)
  • Add a custom tab to the WP-Members admin panel to send test emails to the administrator
  • Generic Header Login as a Widget
  • Fighting registration spam with a honey pot
  • Dynamic redirect to referrer in login
  • Working with Genesis: Stylesheet Pack
  • Adding the WP display_name field to the WP-Members user profile update form
  • Removing line breaks and tabs from generated HTML for easier str_replace
  • Email users when a new post is published – opt-in/opt-out version
  • Clean up the user profile of unused unwanted fields
  • Displaying the post access level when using the PayPal addon
  • Utility function to determine if a user registration is pending with the PayPal addon
  • Simple registration invite code example
  • Email users when a new post is published
  • Create different styles for “success” and “error” messages
  • Create a wp-members-pluggable.php file so that it is editable in the plugin editor
  • Create a sidebar login status and logout link
  • Redirecting WordPress urls for login, logout, and registration
  • Adding user display name to the registration form
  • Use an image in the post restricted message
  • Add section headings to the registration form
  • Disable the WordPress toolbar
  • Displaying sidebar widgets based on login status
  • Add a database generated list of values to the registration form as username
  • Add a database generated list of values to the registration form
  • Adding shortcodes to other locations
  • Remove the name# anchor from the ‘more’ link
  • Disable RSS feeds
  • The functions.php file
  • WordPress site management best practices
  • Redirect requests to wp-login to a front end login page
  • Redirect a logged in user from a landing page
  • Setting up a custom WP-Members stylesheet
  • Creating menus based on login status
  • Creating sidebar content with the logged in/out shortcodes
  • Add a country list dropdown to the registration form
  • Add links to login and register in the post restricted message
  • Generic Header Login
  • Show optional form fields only on user update
  • Remove the login form from completed registration
  • User Settings Page
  • Simple MailChimp integration
  • Change the WordPress new user registration email to use the WP-Members email
  • Remove the login form from the main content area

Different contact forms based on login status

Chad Butler · Mar 24, 2012 ·

This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..

 

This is an demonstration of how to create different contact forms based on the user’s login status. This is a nice way to offer a specific contact form for users that are logged in and a different for for users (visitors) who are not logged. That also makes it easy to use different subject line prefixes so as to prioritize email responses. This is the same method that I use on this site.

Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 49
  • Page 50
  • Page 51
  • Page 52
  • Go to Next Page »

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy