Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('peepso_videos_attach_before', function ($video) {
- if (isset($video['content'])) {
- $video['content'] = preg_replace(
- '/<video([^>]*)>/',
- '<video$1 onloadstart="this.volume=0.5">',
- $video['content']
- );
- }
- return $video;
- }, 999);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement