Filter hook 'login_headertext'

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

View Source

login_headertext

Filter Hook
Description
Filters the link text of the header logo above the login form.

Hook Information

File Location wp-login.php View on GitHub
Hook Type Filter
Line Number 167

Hook Parameters

Type Name Description
string $login_header_text The login header logo link text.

Usage Examples

Basic Usage
<?php
// Hook into login_headertext
add_filter('login_headertext', 'my_custom_filter', 10, 1);

function my_custom_filter($login_header_text) {
    // Your custom filtering logic here
    return $login_header_text;
}

Source Code Context

wp-login.php:167 - How this hook is used in WordPress core
<?php
 162  	 *
 163  	 * @since 5.2.0
 164  	 *
 165  	 * @param string $login_header_text The login header logo link text.
 166  	 */
 167  	$login_header_text = apply_filters( 'login_headertext', $login_header_text );
 168  
 169  	$classes = array( 'login-action-' . $action, 'wp-core-ui' );
 170  
 171  	if ( is_rtl() ) {
 172  		$classes[] = 'rtl';

PHP Documentation

<?php
/**
	 * Filters the link text of the header logo above the login form.
	 *
	 * @since 5.2.0
	 *
	 * @param string $login_header_text The login header logo link text.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-login.php
Related Hooks

Related hooks will be displayed here in future updates.