Advertisement
fauzanjeg

Change Comments Cookie Text

Jul 6th, 2021
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. /* Change Comments Cookie Text */
  2. function change_comment_cookie_text( $translated_text ) {
  3.     if ( comments_open() ) {
  4.         switch ($translated_text) {
  5.             case 'Save my name, email, and website in this browser for the next time I comment.':
  6.                 $translated_text = __('Save my name and email in this browser for the next time I comment.');
  7.                 break;
  8.         }
  9.     }
  10.     return $translated_text;
  11. }
  12. add_filter( 'gettext', 'change_comment_cookie_text', 20, 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement