Notifications
Clear all

Option to over ride login link and text

2 Posts
2 Users
0 Likes
1,007 Views
 MM
(@millennium)
Member Customer
Joined: 6 years ago
Posts: 11
Topic starter  

Is it possible to over ride the Login text on the comment form?

Also is it possible to over ride the login link to use the /my-account/ login page that comes with woocommerce? We dont like that it sends you to the wordpress login page that is branded with WordPress

 


   
Quote
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 
Posted by: @tarik

Is it possible to over ride the Login text on the comment form?

The  "Please Login to comment" phrase can be found and changed from the Dashboard > Comments >  Phrases > Notification admin page.

 

phrases
 

Also is it possible to over ride the login link to use the /my-account/ login page that comes with woocommerce? We dont like that it sends you to the wordpress login page that is branded with WordPress

wpDiscuz uses wp_login_url() (/wp-includes/general-template.php) which uses a filter on its return:

return apply_filters('login_url', $login_url, $redirect);

you might be able to add a filter function to functions.php of your theme, to influence the link; example:

add_filter( 'login_url', 'my_login_linkchanger');
function my_login_linkchanger( $link ) {
  /*whatever you need to do with the link*/
  return $link;
}

More info:  http://codex.wordpress.org/Plugin_API/Filter_Reference/login_url


   
ReplyQuote
Share:
Scroll to top