Advertisement
ghenzdeveloper

Set default volume for PeepSo video

Feb 27th, 2025
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. add_filter('peepso_videos_attach_before', function ($video) {
  2.     if (isset($video['content'])) {
  3.         $video['content'] = preg_replace(
  4.             '/<video([^>]*)>/',
  5.             '<video$1 onloadstart="this.volume=0.5">',
  6.             $video['content']
  7.         );
  8.     }
  9.     return $video;
  10. }, 999);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement