[wp-hackers] Hacking WordPress's login, logout, register ect links
William P. Davis
will.davis at gmail.com
Sat Oct 12 03:32:59 UTC 2013
login_url, logout_url and register_url are the filters you're looking for.
Checking current_user_can( 'update_core' ) then redirecting during admin_init would probably do the trick.
Sent from my BlackBerry
-----Original Message-----
From: Daniel <danielx386 at gmail.com>
Sender: "wp-hackers" <wp-hackers-bounces at lists.automattic.com>Date: Sat, 12 Oct 2013 14:28:07
To: wp-hackers<wp-hackers at lists.automattic.com>
Reply-To: wp-hackers at lists.automattic.com
Subject: [wp-hackers] Hacking WordPress's login, logout, register ect links
Hello all,
Juat a question, does anyone know if there are any hooks that will let
me change the links for wp_login_url, wp_logout_url, wp_loginout, and
wp_register? I know that I could do it in .htaccess but I rather
change it at the source if possible.
Also while I'm at it, is there a hook that can be used to direct
people who go to wp-admin to a different url? This only need to happen
to people who are not admin (Ie subscribers).
Regards,
Daniel Fenn
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list