252 pointsWPMU DEV ExpertSeriously helpful member
dapadoo
Member
—
12th January 2011 (1 year ago)
I'm using WordPress 3.0.4 BP 1.2.7 and Blogs-MU theme
I've created the /login/ page and it works great.
The problem I'm having is the login links from the admin bar and meta widget still take the user to wp-login.php I can't find how to change them to go /login/
What is the easiest way to change those two links to go to /login/?
I'm using WordPress 3.0.4 BP 1.2.7 and Blogs-MU theme
I've created the /login/ page and it works great.
The problem I'm having is the login links from the admin bar and meta widget still take the user to wp-login.php I can't find how to change them to go /login/
What is the easiest way to change those two links to go to /login/?
Having said that, I;m not sure about what function call the meta widget uses. I see though that other function calls use wp_login_url so that filter may/should work for them as well.
Hope this helps,
-drmike
edit: Looks like my example of using wp_loginout is correct as that's what's in the meta widget:
Responses (2)
Keeper of the Dark Chocolate — 12th January 2011 (1 year ago) #
In theory you can filter again wp_login_url.
http://codex.wordpress.org/Function_Reference/wp_login_url
You should be able to filter against 'login_url'.
Having said that, I;m not sure about what function call the meta widget uses. I see though that other function calls use wp_login_url so that filter may/should work for them as well.
Hope this helps,
-drmike
edit: Looks like my example of using wp_loginout is correct as that's what's in the meta widget:
http://wordpress.org/support/topic/using-ltphp-wp_loginout-gt-in-a-sidebar-widget
reedit: Yes, looks like that's where it occurs in the meta widget:
http://core.trac.wordpress.org/browser/trunk/wp-includes/default-widgets.php#L279
line 296 calls wp_loginout which we know uses wp_login_url so the filter should work.
Member — 12th January 2011 (1 year ago) #
@drmike Thanks I'll check the links out and see if it helps.
Become a member