• 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

Login Form

Display

This form will display in place of blocked content if enabled for that post type in the plugin’s main options.

This form can be displayed directly using the shortcode [wpmem_form login]

login_form

HTML

The default HTML markup that is generated when the login form is displayed either in place of blocked content or from the [wpmem_form login] shortcode can be changed by the use of filters in the functions used to create the form.

Filters

Text and HTML in the login form can be changed by various filters that run during the process of building the form.

wpmem_login_form_defaults

Allows you to filter various defaults for the form including:

  • Form heading
  • Form action
  • Form submit button text
  • Redirect
  • Input labels, type, and CSS class

wpmem_login_form_args 
Filters some of the defaults for the form. Most of these are HTML tags that can be filtered and changed in order to set up custom attributes if you are tying into specific CSS other than WP-Members CSS.  Also filters specifc IDs and classes assigned to the form tag and the button tag.  Runs in WP_Members_Forms::login_form().

wpmem_login_form_rows
Filters components that will build each row in the form (for the login form there are 2 rows – username and password).  Rows are a numeric array containing information to assemble the HTML for the form.  This includes the label tag, HTML that comes before the input, the input field tag, and any HTML wrapping the row.  Runs in WP_Members_Forms::login_form().

wpmem_login_hidden_fields
Filters the HTML for hidden fields in the form.  Runs in WP_Members_Forms::login_form().

wpmem_login_form_button_rows
Allows the “remember me” field to be able to be filtered separately from the submit button when the login form is displayed. For all other short forms, this will generally only contain the submit button. Additional HTML inputs can be added to the array (such as a clear form button).

wpmem_login_form_buttons
Filters the HTML for the form button area.  NOTE: if you want to change the button text, do that with wpmem_inc_login_args.  Runs in WP_Members_Forms::login_form().

wpmem_forgot_link
Filters the forgot password URL used in the forgot password link.  Runs in WP_Members_Forms::login_form().

wpmem_forgot_link_str 
Filters the forgot password link as a string.   Runs in WP_Members_Forms::login_form().

wpmem_reg_link 
Filters the register URL used in the register link.  Runs in WP_Members_Forms::login_form().

wpmem_reg_link_str 
Filters the register  link as a string.   Runs in WWP_Members_Forms::login_form().

wpmem_login_form_before  
This filter allows you to add HTML to display before the form.  This is an older filter and is generally not used.  It remains in the plugin for legacy purposes.  Runs in WP_Members_Forms::login_form().

wpmem_login_form 
Filters the generated form HTML once all of it has been assembled.  This filter generally is not used as the previous filters allow direct control over specific text, HTML tags, and properties that might be used for CSS styles.  However, it may be helpful in cases where a larger change may be necessary.  Runs in WP_Members_Forms::login_form().

Functions

wpmem_login_form();

This function can be used to display the login form.  It sets up the heading, some of the HTML to be used, form field information, and ultimately runs the function to assemble the form HTML.  Upon completion, it returns a string of HTML for the form (see above).
[view function]

WP-Members 3.1.3 Release

Chad Butler · Jul 14, 2016 ·

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..

 

Version 3.1.3 of the plugin has been released.  This version is primarily a fix and functional improvement release that also begins to lay the ground work for some larger changes planned for the 3.1 lifecycle.

Note: there was an issue with the initial package that was missing a file (/admin/includes/api.php).  Only the first few hundred downloads were affected before this was reported and rectified.  If you downloaded between 7:00pm and 9:00pm US Central time, that may affect you.  If you notice an issue in the WP admin that references this missing file, then downloading 3.1.3.1 will resolve it.  Continue Reading →

How the plugin handles blocking content

Chad Butler · Jun 29, 2016 ·

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..

 

The plugin filters what is in WP’s $content variable during The Loop based on whether or not the user is logged in.  In its most basic form, if the user is logged in, it allows the content to be displayed.  If the user is not logged in, it empties this value and replaces it with the login and registration form.

Back in 2005-2006 when the plugin originated, this was a very simple process.  Today, not so much.  Today we have custom post types, visual page builders, plugins that are really a full blown application such as WooCommerce or BuddyPress, and countless other possibilities.  

Continue Reading →

wpmem_user_pages()

Description

This function returns an array containing the login, register, and profile page URLs.

The function does not echo output.

Return Values

(array) Array of login, register, and profile page URLs.

Examples

Changelog

  • Introduced in version 3.1.2
  • 3.1.3 Added array keys (login|register|profile)

Source

wpmem_user_pages() is located in /inc/api.php.

WP-Members 3.1.2

Chad Butler · Jun 8, 2016 ·

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..

 

It seems like I just released 3.1.1 and here we are with 3.1.2 getting ready to go out the door.  I’m so excited about the 3.1 series of releases because we are really starting to expand the plugin and its ability for you to customize simply and easily.  If you haven’t updated to 3.1.x, you are missing out.  Be sure to take a look at what was done in 3.1.0 and 3.1.1.  I’ve added new field types, an official (an expanding) series of API functions, new and expanding filters, and a ton of fixes.    Continue Reading →

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 29
  • Page 30
  • Page 31
  • Page 32
  • Page 33
  • Interim pages omitted …
  • 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