Advertisement
fauzanjeg

Change some Paywal Text

Jul 11th, 2021
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. /* Change some Paywal Text */
  2. function change_some_paywal_text( $translated_text ) {
  3.     switch ($translated_text) {
  4.         case 'Are you sure want to unlock this post?':
  5.             $translated_text = __('Are you sure want to unlock this post? Translated');
  6.             break;
  7.         case 'Are you sure want to cancel subscription?':
  8.             $translated_text = __('Are you sure want to cancel subscription? Translated');
  9.             break;
  10.         case 'Unlock left':
  11.             $translated_text = __('Unlock left Translated');
  12.             break;
  13.         case 'Yes':
  14.             $translated_text = __('Yes Translated');
  15.             break;
  16.         case 'No':
  17.             $translated_text = __('No Translated');
  18.             break;
  19.         case 'posts':
  20.             $translated_text = __('posts Translated');
  21.             break;
  22.     }
  23.  
  24.     return $translated_text;
  25. }
  26. add_filter( 'gettext', 'change_some_paywal_text', 20, 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement