Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * Enable YouTube Privacy Enhanced Mode
- *
- */
- add_filter( 'streamtube/player/file/setup', function( $setup, $source ){
- if( $setup['sources'][0]['type'] == 'video/youtube' ){
- $setup['youtube']['enablePrivacyEnhancedMode'] = true;
- }
- return $setup;
- }, 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement