REDIRECCIÓN FALLIDA EN WORDPRESS

add_action( ‘wp_login_failed’, ‘my_front_end_login_fail’ ); // hook para el accesso fallido
function my_front_end_login_fail( $username ) {
$referrer = $_SERVER[‘HTTP_REFERER’]; // ¿de donde viene?
// si hay una referencia válida, y no es la pantalla de acceso por defecto
if ( !empty($referrer) && !strstr($referrer,’wp-login’) && !strstr($referrer,’wp-admin’) ) {
wp_redirect( $referrer . ‘entrar’ ); // le añadimos algo de información (login-failed) a la URL del tema en uso
exit;
}
}

Entradas relacionadas

41 comentarios

  • You are so interesting! I don’t believe I’ve truly read through a single thing like that before. So wonderful to discover another person with unique thoughts on this subject matter. Really.. thank you for starting this up. This website is one thing that is needed on the internet, someone with a little originality.

  • When I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on each time a comment is added I get 4 emails with the same comment. There has to be a way you are able to remove me from that service? Appreciate it.

  • Pretty! This was a really wonderful post. Many thanks for supplying this information.

  • I really like it when people come together and share ideas. Great blog, stick with it.

  • You need to take part in a contest for one of the finest sites online. I’m going to highly recommend this site!

  • Nice post. I learn something totally new and challenging on sites I stumbleupon on a daily basis. It’s always exciting to read through articles from other writers and use something from their sites.

  • Having read this I believed it was rather informative. I appreciate you finding the time and effort to put this information together. I once again find myself personally spending a significant amount of time both reading and posting comments. But so what, it was still worthwhile.

  • This is the right site for everyone who really wants to find out about this topic. You realize so much its almost hard to argue with you (not that I personally would want to…HaHa). You certainly put a brand new spin on a topic that’s been discussed for years. Excellent stuff, just great.

  • I enjoy looking through an article that will make people think. Also, thank you for allowing for me to comment.

  • Hello! I could have sworn I’ve been to this web site before but after browsing through a few of the articles I realized it’s new to me. Nonetheless, I’m certainly delighted I came across it and I’ll be bookmarking it and checking back often!

  • Howdy! I could have sworn I’ve been to this site before but after going through many of the articles I realized it’s new to me. Nonetheless, I’m definitely delighted I discovered it and I’ll be book-marking it and checking back often!

  • Can I simply say what a relief to discover somebody that genuinely understands what they are discussing on the net. You actually know how to bring an issue to light and make it important. More and more people ought to check this out and understand this side of your story. I was surprised you’re not more popular because you certainly have the gift.

  • A fascinating discussion is definitely worth comment. I do believe that you need to publish more on this subject matter, it might not be a taboo matter but generally people do not talk about such topics. To the next! Kind regards.

  • Saved as a favorite, I love your website.

  • I could not resist commenting. Exceptionally well written!

  • I need to to thank you for this wonderful read!! I absolutely enjoyed every little bit of it. I have got you book-marked to check out new things you post…

  • Hi, I do believe this is a great blog. I stumbledupon it 😉 I may come back once again since i have book-marked it. Money and freedom is the best way to change, may you be rich and continue to help other people.

  • Greetings! Very helpful advice in this particular post! It’s the little changes that produce the largest changes. Thanks a lot for sharing!

  • I was pretty pleased to uncover this site. I need to to thank you for your time for this particularly fantastic read!! I definitely loved every little bit of it and i also have you book-marked to check out new stuff on your web site.

  • Everything is very open with a very clear description of the challenges. It was truly informative. Your website is useful. Thank you for sharing!

  • This is a topic that is close to my heart… Cheers! Exactly where are your contact details though?

  • This blog was… how do you say it? Relevant!! Finally I’ve found something that helped me. Kudos!

  • An impressive share! I have just forwarded this onto a coworker who had been conducting a little homework on this. And he actually bought me breakfast due to the fact that I found it for him… lol. So allow me to reword this…. Thanks for the meal!! But yeah, thanx for spending some time to talk about this matter here on your blog.

  • I would like to thank you for the efforts you have put in penning this website. I am hoping to check out the same high-grade content by you later on as well. In fact, your creative writing abilities has encouraged me to get my own blog now 😉

  • Spot on with this write-up, I really believe this amazing site needs far more attention. I’ll probably be returning to read through more, thanks for the advice.

  • Greetings! Very useful advice within this post! It’s the little changes that produce the largest changes. Thanks a lot for sharing!

  • That is a really good tip especially to those fresh to the blogosphere. Short but very precise info… Appreciate your sharing this one. A must read article!

  • After checking out a handful of the blog articles on your website, I honestly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Take a look at my web site as well and let me know your opinion.

  • Good write-up. I absolutely appreciate this site. Keep it up!

  • The next time I read a blog, I hope that it does not fail me as much as this particular one. I mean, Yes, it was my choice to read, but I genuinely thought you would have something useful to talk about. All I hear is a bunch of whining about something that you could possibly fix if you weren’t too busy seeking attention.

  • This is a topic that’s close to my heart… Thank you! Exactly where can I find the contact details for questions?

  • Your style is unique in comparison to other folks I’ve read stuff from. I appreciate you for posting when you have the opportunity, Guess I will just bookmark this web site.

  • After I initially left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I recieve four emails with the exact same comment. Is there an easy method you are able to remove me from that service? Appreciate it.

  • Wonderful article! We are linking to this particularly great content on our site. Keep up the great writing.

  • Hi there, I do believe your blog may be having browser compatibility issues. Whenever I take a look at your website in Safari, it looks fine however, if opening in IE, it has some overlapping issues. I merely wanted to give you a quick heads up! Apart from that, wonderful site!

  • A motivating discussion is worth comment. I do believe that you ought to write more on this subject matter, it might not be a taboo subject but generally people don’t talk about these topics. To the next! Many thanks!

  • I’m excited to uncover this site. I wanted to thank you for ones time for this particularly fantastic read!! I definitely loved every bit of it and i also have you bookmarked to see new information in your website.

  • This is a topic which is close to my heart… Thank you! Where are your contact details though?

  • This is a topic which is close to my heart… Many thanks! Exactly where are your contact details though?

  • Very interesting info!Perfect just what I was searching for!!

  • I dugg some of you post as I cogitated they were invaluable very beneficial