Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

wp-login-form

How to set where user is redirected to after logging in at wp-login?

Filter ‘login_redirect’. Sample code, not tested: add_filter( ‘wp_login’, ‘wpse_78150_login_redirect’ ); function wpse_78150_login_redirect( $url ) { # uncomment the next line for debugging # var_dump( wp_get_current_user() ); exit; if ( ! current_user_can( ‘custom_role’ ) ) return $url; return admin_url(); }

Categories wp-admin Tags user-roles, wp-admin, wp-login-form

Redirect outside WP after login

Finally it works! What I was doing wrong is putting the code in the WP functions.php file, and not in my custom theme functions.php file. Thanks all!

Categories redirect Tags redirect, wp-login-form, wp-redirect

Blank page for wp-admin after i uploaded the website from my localhost to the live server

Try this in your functions.php file: //fix for cookie error while login. setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN); if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, COOKIE_DOMAIN);

Categories wp-admin Tags wp-admin, wp-login-form

Redirect wp-login

Try something similar to this: function is_login() { return in_array( $GLOBALS[‘pagenow’], array( ‘wp-login.php’, ‘wp-register.php’ ) ); } function redirect_login() { if ( is_login() ) { wp_redirect(‘http://example.com/customloginpage’); } } add_action( ‘init’, ‘redirect_login’ ); You’ll need to modify the URL it redirects to, and test thoroughly.

Categories login Tags login, wp-login-form, wp-redirect

WordPress error on log out ‘Not Permitted’ and can’t log out

I made an answer out of this now to give a more detailed write-up to your question. As the botnet is so large and the attack is happening with so much IPs (some providers say they have seen >90.000 different addresses) it makes no sense anymore to start blocking single IPs (using plugins like Limit … Read more

Categories login Tags errors, login, logout, wp-login-form

How to change wordpress Log In text

Glad to hear that you got interested in WordPress. Documentation for customizing the Login Form: And because you want to add custom text I would recommend you create a custom Login form. Documentation for creating a custom Login form.

Categories login Tags login, wp-login-form

WP not logging in at first time

I too experience this when I go to the [domain]/wp-admin page to login. The issue seems to be with the redirect which loops back to the login page instead of going to the Dashboard. Instead of going to the [domain]/wp-admin to login, try going to [domain]/wp-login.php instead. The redirect seems to work correctly this way. … Read more

Categories users Tags bug, cookies, redirect, users, wp-login-form

White screen of death for wp-admin and error for wp-login.php after entering credentials

White screen of death for wp-admin and error for wp-login.php after entering credentials

Categories wp-admin Tags fatal-error, wp-admin, wp-login-form

WordPress server change – slow admin login time for first time

WordPress server change – slow admin login time for first time

Categories wp-admin Tags wp-admin, wp-load.php, wp-login-form

Deep customization of wp-login.php

You can edit the login form from your child themes functions.php using actions such as: function my_login_scripts() { //do stuff here } add_action( ‘login_enqueue_scripts’, ‘my_login_scripts’ ); This should at least allow you to get your jQuery running on the page. You can read more about this here: http://codex.wordpress.org/Customizing_the_Login_Form

Categories customization Tags customization, login, password, wp-login-form
Older posts
Newer posts
← Previous Page1 … Page20 Page21 Page22 … Page35 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress