Advertisement
phpface

Changing Text based on Text Domain

Jul 26th, 2023 (edited)
1,268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. add_filter( 'gettext_streamtube-core', function( $translation, $text, $domain ){
  2.  
  3.     if( $text == 'Add From Source' ){
  4.         $translation = 'Embed';
  5.     }
  6.  
  7.     return $translation;
  8.  
  9. }, 10, 3 );
  10.  
  11. add_filter( 'gettext_streamtube', function( $translation, $text, $domain ){
  12.  
  13.     if( $text == 'Sign In' ){
  14.         $translation = 'Sign In/Up';
  15.     }
  16.  
  17.     return $translation;
  18.  
  19. }, 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement