• 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
  • Store
    • Cart
    • Checkout
  • Blog
    • Basics [Free]
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Contact
  • Sign In
  • Show Search
Hide Search
Home » Plugins » WP-Members » Documentation » Filter Hooks » wpmem_login_form

wpmem_login_form

Description

This filter hook comes after the html for the login form is compiled. Using this filter, you can make changes to the login form.

Note: the “login” form is used in three ways – Login, Password Change, Forgotten Password Reset.  The state is determined by the value of the wp-members action variable $wpmem_a, which is available as global $wpmem_a;  For password change, the value will be pwdchange and for forgotten password reset it will be pwdreset.

Parameters

$form
(string) (required) The form HTML as a string.

$action
(string) (optional) The form being generated (login|pwdreset|pwdchange|getusername)

Changelog

Introduced in version 2.7.4

$action argument added in 2.9.1

Source

wpmem_inc_logins is located in forms.php

Usage

add_filter( 'wpmem_login_form', 'my_login_form_filter', 10, 2 );

function my_login_form_filter( $form, $action )
{
	/**
	 * The login form is brought in with $form
	 * You can append to it or filter it
	 *
	 * $action specifies the form being constructed. It
	 * can be: login|pwdreset|pwdchange
	 */

	return $form;
}

Code Snippet Library [Subscriber Content]

  • Display form rows in columns
  • Force user to update password from randomly set password
  • Reset password with just email
  • Add a helpful dialog above the password reset form
  • Workaround for registration form layout issues
  • Remove the login form from completed registration
  • Bootstrap icons for the login form
  • Remove the login form from the main content area
See a list of all filter and action hooks

Welcome to RocketGeek Interactive › Forums › Plugins › WP-Members › WP-Members Documentation › Filter Hooks › wpmem_login_form

  • This topic has 0 replies, 1 voice, and was last updated 9 years ago by Chad Butler.
Viewing 0 reply threads
  • Author
    Posts
    • March 26, 2012 at 9:50 pm #2128
      Chad Butler
      Keymaster

      Description This filter hook comes after the html for the login form is compiled. Using this filter, you can make changes to the login form. Note: the
      [See the full post at: wpmem_login_form]

  • Author
    Posts
Viewing 0 reply threads
  • You must be logged in to reply to this topic.
Log In

Ready to get started?

Join Today!

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

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