Action hook 'login_head'

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

View Source

login_head

Action Hook
Description
Fires in the login page header after scripts are enqueued.

Hook Information

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

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-login.php:127 - How this hook is used in WordPress core
<?php
 122  	/**
 123  	 * Fires in the login page header after scripts are enqueued.
 124  	 *
 125  	 * @since 2.1.0
 126  	 */
 127  	do_action( 'login_head' );
 128  
 129  	$login_header_url = __( 'https://wordpress.org/' );
 130  
 131  	/**
 132  	 * Filters link URL of the header logo above login form.

PHP Documentation

<?php
/**
	 * Fires in the login page header after scripts are enqueued.
	 *
	 * @since 2.1.0
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-login.php
Related Hooks

Related hooks will be displayed here in future updates.