I’m not sure I understand.
What would be the easiest way to send someone who fails to enter their login information correctly, to a separate page? This page is already built-out and provides a place for them to submit their username and receive their credentials via email–all part of a separate system through OfficeAutoPilot. Redirecting to that page from the “forgot password” link would be just as helpful.
Por que meu site está com esse redirecionamento estranho? http://www.linkesfera.com.br/http:/www.linkesfera.com.br/entre-login
A home simplesmente desapareceu. Gera erro 404
How about:
function wp_login_failed_action( $username ) {
$redirect_to = 'YOUR URL HERE';
wp_redirect( $redirect_to );
exit;
}
add_action( 'wp_login_failed', 'wp_login_failed_action' );
Hey Jeff,
Where would that code go?
Thanks!
Never mind, figured it out. It goes in your theme functions!
Thanks!
Jeff Farthing. Eu fiz isto que voce sugeriu e não resolveu o problema. Coloquei o código acima no diretório de hospedagem
public_html/wp-content/plugins/theme-my-login/functions.php
(em um arquivo criado com o nome sugerido functions.php)
Note, não é uma simples questão de redirecionamento, é questão de sobreposição de URL no mesmo campo. Veja abaixo:
http://www.linkesfera.com.br/http:/www.linkesfera.com.br/entre-login
Isso ocorreu depois que eu coloquei nos 3 campos de “Links permanentes” a URL da página criada para login, esta: http:/www.linkesfera.com.br/entre-login
Ela se sobrepôs à URL da HOME (página inicial). E agora, não falo a menor ideia sobre o local onde se encontra essa configuração, para excluir e meu site voltar ao normal ou instalar seu plugin.
Jeff Farthing. I did what you suggested and it did not solve the problem. I put the above code in the directory hosting public_html / wp-content / plugins / theme-my-login / functions.php (in a file created with the name suggested functions.php) Note, there is a simple matter of redirecting, it is question of overlapping URL in the same field. See below: http://www.linkesfera.com.br/http:/www.linkesfera.com.br/entre-login This happened after I put in three fields of “permanent links” created the URL of the page to login, this: http:/www.linkesfera.com.br/entre-login She dominated the URL of the home (home page). And now I speak not the slightest idea about where this setting is to delete my website and return to normal or install your plugin.