Advertisement
Aurangajeb

Remove the Login | Lost Password link from the frontend page with PHP filter

Apr 3rd, 2021
1,041
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. /* Hide/remove Log In & Lost Password text add this below code on your theme/child-theme's functions.php file */
  2.   /** hide login text **/
  3. function remove_login_text ( $text ) {
  4.          if ($text == 'Log In'){$text = '';}
  5.                 return $text;
  6.          }
  7. add_filter( 'gettext', 'remove_login_text' );
  8.  
  9. /** hide lost password text **/
  10. function remove_lostpassword_text ( $text ) {
  11.          if ($text == 'Lost Password'){$text = '';}
  12.                 return $text;
  13.          }
  14. add_filter( 'gettext', 'remove_lostpassword_text' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement