fauzanjeg

Fix JNews View Counter Translate

Oct 12th, 2021 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. /* Fix JNews View Counter Translate */
  2. function fix_jnews_view_counter_translate( $translated_text ) {
  3.     switch ( $translated_text ) {
  4.         case 'Post View Stats':
  5.             $translated_text = __( 'Post View Stats Edited' );
  6.             break;
  7.     }
  8.  
  9.     return $translated_text;
  10. }
  11. add_filter( 'gettext', 'fix_jnews_view_counter_translate', 20, 1 );
Add Comment
Please, Sign In to add comment