• Resolved cntowerlights

    (@cntowerlights)


    I found this post from 3 years ago where this code was suggested to enable autoplay on individual post pages:

    add_filter( 'vvq_shortcodeatts', 'marctytus1_vvq_tweaker', 10, 3 );
    
    function marctytus1_vvq_tweaker( $atts, $type, $origatts ) {
    	if ( is_singular() )
    		$atts['autoplay'] = true;
    
    	return $atts;
    }

    It doesn’t work now for me. I’m wondering if there has been any update over the past 3 years that would have caused this code to stop working?

    http://wordpress.org/plugins/vipers-video-quicktags/

Viewing 1 replies (of 1 total)
  • Thread Starter cntowerlights

    (@cntowerlights)

    Looks like the above code got blocked out in the most recent update:

    v6.4.5
    Security: Better sanitization and validation of shortcode attributes to prevent low-access users from doing naughty things.

Viewing 1 replies (of 1 total)
  • The topic ‘Autoplay if ( is_singular() )’ is closed to new replies.