login_form_top
Filter HookDescription
Filters content to display at the top of the login form. The filter evaluates just following the opening form tag element.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 569 |
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_top
add_filter('login_form_top', '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:569
- How this hook is used in WordPress core
<?php
564 * @since 3.0.0
565 *
566 * @param string $content Content to display. Default empty.
567 * @param array $args Array of login form arguments.
568 */
569 $login_form_top = apply_filters( 'login_form_top', '', $args );
570
571 /**
572 * Filters content to display in the middle of the login form.
573 *
574 * The filter evaluates just following the location where the 'login-password'
PHP Documentation
<?php
/**
* Filters content to display at the top of the login form.
*
* The filter evaluates just following the opening form tag element.
*
* @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.