login_form_defaults
Filter HookDescription
Filters the default login form output arguments.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 557 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$defaults
|
An array of default login form arguments. |
Usage Examples
Basic Usage
<?php
// Hook into login_form_defaults
add_filter('login_form_defaults', 'my_custom_filter', 10, 1);
function my_custom_filter($defaults) {
// Your custom filtering logic here
return $defaults;
}
Source Code Context
wp-includes/general-template.php:557
- How this hook is used in WordPress core
<?php
552 *
553 * @see wp_login_form()
554 *
555 * @param array $defaults An array of default login form arguments.
556 */
557 $args = wp_parse_args( $args, apply_filters( 'login_form_defaults', $defaults ) );
558
559 /**
560 * Filters content to display at the top of the login form.
561 *
562 * The filter evaluates just following the opening form tag element.
PHP Documentation
<?php
/**
* Filters the default login form output arguments.
*
* @since 3.0.0
*
* @see wp_login_form()
*
* @param array $defaults An array of default login form arguments.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.