“Password Strength Unknown” Registration Issue
Found out the issue, for some reason beautifying the code before save messed with formatting. By downloading a fresh wp-login.php I was able to resolve this
Found out the issue, for some reason beautifying the code before save messed with formatting. By downloading a fresh wp-login.php I was able to resolve this
You can use wordpress referrer function. For example set referrer URL in session by clicking on add to cart button or any button to store previous URL. Once login or register success add Woocommerce success login redirect to that URL. For more information read WordPress referrer URL read here; https://codex.wordpress.org/Function_Reference/wp_get_referer For Woocommerce login redirect read … Read more
Yes, you can use wp_update_user(): wp_update_user( array( ‘ID’ => 123, ‘user_nicename’ => ‘value’ ) ); Just replace 123 with the proper user ID, and value with the preferred user_nicename value. The function also enables you to change the value of other fields in the WordPress users table (wp_users).
Add this filter to change how blank username/password is treated: add_filter( ‘authenticate’, ‘custom_authenticate_username_password’, 30, 3); function custom_authenticate_username_password( $user, $username, $password ) { if ( is_a($user, ‘WP_User’) ) { return $user; } if ( empty($username) || empty($password) ) { $error = new WP_Error(); $user = new WP_Error(‘authentication_failed’, __(‘<strong>ERROR</strong>: Invalid username or incorrect password.’)); return $error; } … Read more
Do this on template_redirect hook. You can use wp_safe_redirect to redirect to different page in the blog. I can’t give you the code because I don’t from where you are getting the $user
This has to do with the cookie domain. It is set for each domain, which prevents network-wide logins. You can try setting COOKIE_DOMAIN constant in your wp-config.php. For example setting it to empty, which prevents WordPress from changing the cookie domain for each site: define( ‘COOKIE_DOMAIN’, ” ); Maybe you need to set some other … Read more
This allows for the message to be overwritten specifically for the loggedout message while leaving all other messages alone. Here is more documentation on the filter. add_filter( ‘wp_login_errors’, ‘my_logout_message’ ); function my_logout_message( $errors ){ if ( isset( $errors->errors[‘loggedout’] ) ){ $errors->errors[‘loggedout’][0] = ‘This is the <strong style=”color:red;”>logged out</strong> message.’; } return $errors; }
I am not sure there is a way to suppress all these links, but you can hide them with CSS: add_action( ‘login_head’, ‘hide_login_nav’ ); function hide_login_nav() { ?><style>#nav,#backtoblog{display:none}</style><?php } Result:
You have the wrong values , you can’t use ← , instead use the right encoding which in that case is ← and also %s for the title. Also you only want this to run on two pages. function back_to_site_text( $translated ) { if ( in_array( $GLOBALS[‘pagenow’], array( ‘wp-login.php’, ‘wp-register.php’ ) ) ) $translated = … Read more
Don’t modify core, use the actions and hooks system instead add_action( ‘login_init’, ‘yourloginoverrides’ ); function yourloginoverrides() { // do some check and call wp_redirect if its true or whatever you wanted to do }