Filter hook 'login_site_html_link'

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

View Source

login_site_html_link

Filter Hook
Description
Filters the "Go to site" link displayed in the login page footer.

Hook Information

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

Hook Parameters

Type Name Description
string $link HTML link to the home URL of the current site.

Usage Examples

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

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

Source Code Context

wp-login.php:349 - How this hook is used in WordPress core
<?php
 344  			 *
 345  			 * @since 5.7.0
 346  			 *
 347  			 * @param string $link HTML link to the home URL of the current site.
 348  			 */
 349  			echo apply_filters( 'login_site_html_link', $html_link );
 350  			?>
 351  		</p>
 352  		<?php
 353  
 354  		the_privacy_policy_link( '<div class="privacy-policy-page-link">', '</div>' );

PHP Documentation

<?php
/**
			 * Filters the "Go to site" link displayed in the login page footer.
			 *
			 * @since 5.7.0
			 *
			 * @param string $link HTML link to the home URL of the current site.
			 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-login.php
Related Hooks

Related hooks will be displayed here in future updates.