Action hook 'login_header'

in WP Core File wp-login.php at line 212

View Source

login_header

Action Hook
Description
Fires in the login page header after the body tag is opened.

Hook Information

File Location wp-login.php View on GitHub
Hook Type Action
Line Number 212

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into login_header
add_action('login_header', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-login.php:212 - How this hook is used in WordPress core
<?php
 207  	/**
 208  	 * Fires in the login page header after the body tag is opened.
 209  	 *
 210  	 * @since 4.6.0
 211  	 */
 212  	do_action( 'login_header' );
 213  	?>
 214  	<?php
 215  	if ( 'confirm_admin_email' !== $action && ! empty( $title ) ) :
 216  		?>
 217  		<h1 class="screen-reader-text"><?php echo $title; ?></h1>

PHP Documentation

<?php
/**
	 * Fires in the login page header after the body tag is opened.
	 *
	 * @since 4.6.0
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-login.php
Related Hooks

Related hooks will be displayed here in future updates.