Try these filters instead
// changing the logo link from wordpress.org to your site
function mb_login_url() { return home_url(); }
add_filter( 'login_headerurl', 'mb_login_url' );
// changing the alt text on the logo to show your site name
function mb_login_title() { return get_option( 'blogname' ); }
add_filter( 'login_headertitle', 'mb_login_title' );
Though if you’re on a Network/MultiSite you might need network_home_url()
instead
Related Posts:
- How to load a CSS file into WordPress admin area using Child Theme? [closed]
- Activating Child Theme Breaks Website, Blank Page, Error 500
- How to disable admin notice in child theme? [closed]
- Child theme loses wp-admin styling
- WordPress Child problem in admin
- Renaming child-theme folder fixed wp-admin blank
- Organizing Code in your WordPress Theme's functions.php File?
- How to check if a user is in a specific role?
- How can we make managing lots of pages in WordPress Admin better?
- Create WP tutorial for users with admin pointer using next button for navigation
- Add “external” link to admin menu in the backend
- Disable image attachment links
- Is there un-wp_autop function?
- Adding a menu item in the admin bar
- how to force caching of wordpress admin
- Slow admin – waits and is blocked for a long time
- How to disable 3.3 Tooltips?
- wp login redirects to homepage
- jquery UI in wordpress admin
- Restrict access in wp-admin area?
- Retrieve Path of admin.php
- wp-admin does not redirect to dashboard
- Display $pagenow error notice on all admin pages
- Change WP-Login or WP-Admin
- Custom roles showing HTML entities in title form field
- How can I restrict a user to a specific item in the WordPress Admin? [closed]
- How to show postmeta in custom columns for the posts screen?
- disable a wp javascript on live website, but not on wp-admin page
- wp_nonce_url to users.php for deleting user not working
- How to stop – Database Update Required – from happening again?
- Moving wp-admin to a different to a subdomain
- using wp_sprintf at wordpress option page,
- Can’t login to Dashboard when changing site URL to HTTPS
- Limit access to wp_admin
- Not Found (404) error on admin page, CSS gone on blog
- MySQL CPU Usage Surge up When Multiple Post Editor Pages are open
- Disable wordpress reordering functions in backend screen element
- how to customize wp-admin page using child theme
- new subdomain to apply as main domain
- WordPress server change – slow admin login time for first time
- I can´t access my admin panel. I tried all possible solutions
- Blank page for wp-admin after i uploaded the website from my localhost to the live server
- Ajax solution similar to WP Categories functioning in Admin area
- Difference between admin and user admin
- How to get specific page screen ID
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Editing edit-tags.php page in wp-admin
- What is the correct way to get only display plugin for Administrator Only
- displaying an error before update_post_meta
- firing function at login within class
- How to break line / add to ADMIN menu
- WordPress admin page not found error
- Outputting something based on the presence of post variable in admin screens
- Use of domain name
- “Add New” button on custom post type grid
- Where is function to prevents non logged users access wp-admin?
- Registering for a domain on WordPress
- CSS of the admin panel
- Dismiss Admin Pointer Temporarily
- WordPress admin right sidebar isn’t working
- Why wp redirects me to wp-login.php when I visit a rewritten wp-admin URL?
- WordPress menu to change page title
- wp-admin blocking causing http error on uploads
- DISALLOW_FILE_EDIT is false but I still am not able to edit files from the admin interface and the menus do not show up
- Updated MAMP and localhost on MacOS site no longer accessible
- What hooks should you use to create a table only once?
- Custom admin menu order fails if slugs are complicated
- Redirect WordPress login for customers but not admin
- Cant access wp-admin
- Function to get a ‘post selector’ UI?
- Unable to open specific posts on WP Dashboard [duplicate]
- How to list newly ftp added HTML webpage under Pages section of wp-admin?
- Hi everyone, I have Problem with using wp_die()
- WordPress wp-admin Page
- How can I trigger a javascript function after a post update on edit post screen in wordpress admin panel?
- restrict admin panel sections to users
- how to set not to be logined in wp-admin except administrator?
- CSRF attack to create USER
- Disable flyout (popup) menus in backend
- WordPress, content editor default type
- Changing headers for an export from within a PHP class extension
- Remove capability to interact with a page
- Random HTTPs redirections at admin area in shared hosting
- WordPress Login for multiple sites
- How do I change the WordPress Address URL only and still login to wp-admin
- wordpress wp-admin showing white screen with no error
- Undeletable posts, users or other content
- Blank sign in page
- add_post_meta displays in admin edit area
- Forcing WordPress Administration onto a separate SSL Host
- How to prevent Google adsense invalid impressions while performing admin tasks on my wordpress site?
- Action for opening edit page in admin?
- Couple questions about .htaccess, login page, updates
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- After Upgrade: $user becomes unknown (id: 0) after successful login?
- Redirect users based on their roles, is_admin()
- insert an admin table inside another admin page
- /wp-admin/ – this link showing me “Index of /wp-admin”/ instead of dashboard
- What methods are you using to transfer individual WP site components from one site to another?
- how to Hide all products except the General Manager role in the WordPress admin panel?