Notifications
Clear all

Option to over ride login link and text

2 Posts
2 Users
0 Reactions
1,193 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