Support » Plugin: Viper's Video Quicktags » Autoplay if ( is_singular() )

  • Resolved 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?

Viewing 1 replies (of 1 total)
  • Looks like the above code got blocked out in the most recent update:

    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.