Advertisement
phpface

Untitled

Feb 14th, 2023
942
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. /**
  2.  *
  3.  * Enable YouTube Privacy Enhanced Mode
  4.  *
  5.  */
  6. add_filter( 'streamtube/player/file/setup', function( $setup, $source ){
  7.  
  8.     if( $setup['sources'][0]['type'] == 'video/youtube' ){
  9.         $setup['youtube']['enablePrivacyEnhancedMode'] = true;
  10.     }
  11.  
  12.     return $setup;
  13.  
  14. }, 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement