Login form- no feedback
Login form- no feedback
Login form- no feedback
Try this snippet. You can add custom error messages based on different error codes. add_filter( ‘login_errors’, ‘custom_login_errros_callback’ ); function custom_login_errros_callback( $error ) { global $errors; $err_codes = $errors->get_error_codes(); if ( in_array( ‘invalid_username’, $err_codes ) ) { $error=”<b>Error:</b> Invalid username/email or password.”; } if ( in_array( ‘incorrect_password’, $err_codes ) ) { $error=”<b>Error:</b> Invalid username/email or password.”; … Read more
Give this code a try: var query = window.location.search.substring(1); var paramList = query.split(‘&’); for (var i=0; i < paramList.length; i++) { var param = paramList[i].split(‘=’); if(param[0] == ’email’) { var element = document.getElementById(‘user_login’); if (element) { element.value = decodeURIComponent(param[1]); } } } I used the browser inspector console to test it out quickly and debug … Read more
How to hide header and footer from page template
For redirect you can do something like this. function redirect_to_page() { global $user; if (in_array( ‘specified_role’, $user->roles ) ) { return ‘/wp-admin/post.php?post=7&action=edit’; } } add_filter(‘login_redirect’, ‘redirect_to_page’);
WordPress – Security Question at Login from User’s Meta Data
Check wordpress Login Trouble codex step by step. I hope you didn’t make any change which affect to code(i.e. Add new plugin, .htaccess code change). Let me know if you still facing same.
You will need to mix PHP + Javascript to do that. PHP to check if user is logged in and load login/register form, and javascript to show it in the modal way. There is a plugin that seems to do that, maybe you can get some results with it: https://wordpress.org/plugins/simplemodal-login/
Although users have access to go to /wp-admin/, they will not have access to do anything on there. There is no security risk involved to being able to have access /wp-admin/ for WooCommerce users. If you’d like however, you can setup an Apache protected directory with a password to /wp-admin/ that requires an additional user … Read more
Your form action point to the url in which the login form is displayed, and this is many times not the desired behavior when you write your own login form. You should let the login end point handle the login. The result should be something like <form …. action=”<?php echo esc_url( site_url( ‘wp-login.php’, ‘login_post’ ) … Read more