login_form_middle

Filters content to display in the middle of the login form.

Description

apply_filters( 'login_form_middle', (string) $var, (array) $args ); 

The filter evaluates just following the location where the login-password field is displayed.

Parameters (2)

0. $var (string) => ''
Content to display. Default empty.
1. $args (array)
Array of login form arguments.

Usage

To run the hook, copy the example below.
  1. $var = apply_filters( 'login_form_middle', $var, $args ); 
  2.  
  3. if ( !empty( $var ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the login_form_middle callback 
  2. function filter_login_form_middle( $var, $args ) { 
  3. // make filter magic happen here... 
  4. return $var
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'login_form_middle', 'filter_login_form_middle', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'login_form_middle', 'filter_login_form_middle', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-includes/general-template.php  
  1. $login_form_middle = apply_filters( 'login_form_middle', '', $args );