login_form_middle
Filter HookDescription
Filters content to display in the middle of the login form. The filter evaluates just following the location where the 'login-password' field is displayed.Hook Information
| File Location |
wp-includes/general-template.php
View on GitHub
|
| Hook Type | Filter |
| Line Number | 582 |
Hook Parameters
| Type | Name | Description |
|---|---|---|
string
|
$content
|
Content to display. Default empty. |
array
|
$args
|
Array of login form arguments. |
Usage Examples
Basic Usage
<?php
// Hook into login_form_middle
add_filter('login_form_middle', 'my_custom_filter', 10, 2);
function my_custom_filter($content, $args) {
// Your custom filtering logic here
return $content;
}
Source Code Context
wp-includes/general-template.php:582
- How this hook is used in WordPress core
<?php
577 * @since 3.0.0
578 *
579 * @param string $content Content to display. Default empty.
580 * @param array $args Array of login form arguments.
581 */
582 $login_form_middle = apply_filters( 'login_form_middle', '', $args );
583
584 /**
585 * Filters content to display at the bottom of the login form.
586 *
587 * The filter evaluates just preceding the closing form tag element.
PHP Documentation
<?php
/**
* Filters content to display in the middle of the login form.
*
* The filter evaluates just following the location where the 'login-password'
* field is displayed.
*
* @since 3.0.0
*
* @param string $content Content to display. Default empty.
* @param array $args Array of login form arguments.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.