login_form_top
Filters content to display at the top of the login form.
The filter evaluates just following the opening form tag element.
Usage
add_filter( 'login_form_top', 'wp_kama_login_form_top_filter', 10, 2 ); /** * Function for `login_form_top` filter-hook. * * @param string $content Content to display. * @param array $args Array of login form arguments. * * @return string */ function wp_kama_login_form_top_filter( $content, $args ){ // filter... return $content; }
- $content(string)
- Content to display.
Default: '' - $args(array)
- Array of login form arguments.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
wp-includes/general-template.php 569
$login_form_top = apply_filters( 'login_form_top', '', $args );