WordPress filter hook

login_headerurl

Fired by 38 WordPress plugins, running on 4.9M+ sites between them.

“Filters link URL of the header logo above login form.”

How to use login_headerurl

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'login_headerurl', function( $login_header_url ) {
	// Change $login_header_url here.
	return $login_header_url;
}, 10, 1 );

Argument names come from Really Simple Security's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

38 plugins that fire login_headerurl

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Really Simple Security icon Really Simple Security3+ million installs apply_filters( 'login_headerurl', $login_header_url ) security/wordpress/two-fa/function-login-header.php:116
  2. Kadence Security icon Kadence Security700,000+ installs apply_filters( 'login_headerurl', $login_header_url ) core/lib/includes/function.login-header.php:96
  3. Nextend Social Login and Register icon Nextend Social Login and Register200,000+ installs apply_filters( 'login_headerurl', $login_header_url ) includes/compat-wp-login.php:148
  4. LoginPress icon LoginPress200,000+ installs apply_filters( 'login_headerurl', $login_header_url ) include/template-loginpress.php:175
  5. Two Factor icon Two Factor100,000+ installs apply_filters( 'login_headerurl', $login_header_url ) includes/function.login-header.php:119
  6. WP 2FA icon WP 2FA100,000+ installs apply_filters( 'login_headerurl', $login_header_url ) includes/functions/login-header.php:101
  7. Hide My WP Ghost icon Hide My WP Ghost100,000+ installs apply_filters( 'login_headerurl', $login_header_url ) view/wplogin/header.php:183
  8. Defender Security icon Defender Security80,000+ installs apply_filters( 'login_headerurl', $login_header_url ) src/view/two-fa/otp.php:128
  9. Custom Login Page Customizer icon Custom Login Page Customizer80,000+ installs apply_filters( 'login_headerurl', $login_header_url ) src/Customizer/template-login-customizer.php:57
  10. All In One Login icon All In One Login60,000+ installs apply_filters( 'login_headerurl', home_url( '/' ) ) includes/two-factor/settings/two-factor-method-change-prompt.php:47
  11. Custom Login Page Customizer icon Custom Login Page Customizer50,000+ installs apply_filters( 'login_headerurl', $clc_header_url ) includes/login-template.php:130
  12. Titan Anti-spam & Security icon Titan Anti-spam & Security50,000+ installs apply_filters( 'login_headerurl', $login_header_url ) includes/tweaks/password-requirements/login-interstitial/functions-login-header.php:112
  13. WP Hide & Security Enhancer icon WP Hide & Security Enhancer50,000+ installs apply_filters( 'login_headerurl', $login_header_url ) modules/components/login_2fa_template_login_header.php:118
  14. Ultimate Dashboard icon Ultimate Dashboard50,000+ installs apply_filters( 'login_headerurl', __( 'https://wordpress.org/' ) ) modules/login-customizer/templates/udb-login-page.php:135
  15. Divi Torque Lite icon Divi Torque Lite50,000+ installs apply_filters( 'login_headerurl', $login_header_url ) includes/deprecated/extensions/login-designer/ext-template-login-designer.php:57
  16. Shield Security icon Shield Security30,000+ installs apply_filters( 'login_headerurl', $login_header_url ) src/ActionRouter/Actions/Render/FullPage/Mfa/Components/WpLoginReplicaHeader.php:82
  17. Loginfy icon Loginfy2,000+ installs apply_filters( 'login_headerurl', $login_header_url ) Inc/Core/Inc/loginfy-login-template.php:121
  18. School Management System icon School Management System1,000+ installs apply_filters( 'login_headerurl', $wpsp_login_header_url ) wpsp-school-login.php:99
  19. Login Page Customizer icon Login Page Customizer1,000+ installs apply_filters( 'login_headerurl', $login_header_url ) login-page-customizer/customize/template-lpc-custom-login-page.php:153
  20. CLP icon CLP600+ installs apply_filters( 'login_headerurl', $login_header_url ) includes/customizer-login-template.php:55
  21. Network Privacy icon Network Privacy300+ installs apply_filters( 'login_headerurl', network_home_url() ) ra-network-privacy.php:184
  22. Admin Optimizer icon Admin Optimizer100+ installs apply_filters( 'login_headerurl', $login_header_url ) modules/2fa/includes/wp-2fa-login.php:123
  23. Login Page UI Customizer icon Login Page UI Customizer100+ installs apply_filters( 'login_headerurl', $login_header_url ) includes/login-page-template.php:91
  24. Fuerte-WP icon Fuerte-WP80+ installs apply_filters( 'login_headerurl', $login_header_url ) includes/two-factor/includes/function.login-header.php:120
  25. More Privacy Options icon More Privacy Options40+ installs apply_filters( 'login_headerurl', 'http://' . $current_site->domain . $current_site->path ) ds_wp3_private_blog.php:439
  26. Loginify icon Loginify20+ installs apply_filters( 'login_headerurl', $login_header_url ) templates/loginify-page.php:41
  27. WP Front End Login icon WP Front End Login10+ installs apply_filters( 'login_headerurl', $login_header_url ) wp-front-end-login.php:888
  28. Bravo WP security Plugin icon Bravo WP security Plugin10+ installs apply_filters( 'login_headerurl', $login_header_url ) includes/function.login-header.php:89
  29. LoginShield for WordPress icon LoginShield for WordPress10+ installs apply_filters( 'login_headerurl', get_bloginfo('url') ) admin/partials/loginshield-login.php:20
  30. Invite Friends icon Invite Friends10+ installs apply_filters( 'login_headerurl', 'http://wordpress.org/' ) pages/activate.php:19
  31. CryptoPhoto icon CryptoPhoto10+ installs apply_filters( 'login_headerurl', $login_header_url ) cryptophoto.php:66
  32. Passwordless icon Passwordless10+ installs apply_filters( 'login_headerurl', $login_header_url ) login.php:45
  33. Matoma Two-Factor Authentication icon Matoma Two-Factor AuthenticationFewer than 10 installs apply_filters( 'login_headerurl', $login_header_url ) includes/func.wp-login.php:116
  34. Dashboard Plus icon Dashboard PlusFewer than 10 installs apply_filters( 'login_headerurl', $login_header_url ) modules/customizer/templates/dashplu-login-page.php:122
  35. Secured WP icon Secured WPFewer than 10 installs apply_filters( 'login_headerurl', $login_header_url ) classes/Controllers/Modules/Views/class-login-forms.php:628
  36. XC Authentication Plugin icon XC Authentication PluginFewer than 10 installs apply_filters( 'login_headerurl', 'http://wordpress.org/' ) wp-xc-login.php:78
  37. Cope Login icon Cope LoginFewer than 10 installs apply_filters( 'login_headerurl', home_url( '/' ) ) cope-login.php:247
  38. Sovaryx Login Security icon Sovaryx Login SecurityFewer than 10 installs apply_filters( 'login_headerurl', home_url('/') ) includes/class-email-otp.php:1017

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.