Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    I’m not sure I understand.

    Thread Starter technoc

    (@technoc)

    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? https://www.linkesfera.com.br/http:/www.linkesfera.com.br/entre-login

    A home simplesmente desapareceu. Gera erro 404

    Plugin Author Jeff Farthing

    (@jfarthing84)

    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:

    https://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: https://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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Theme My Login] failed login redirect’ is closed to new replies.