Viper's Video Quicktags
[resolved] Autoplay if ( is_singular() ) (2 posts)

  1. cntowerlights
    Posted 2 years ago #

    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?


  2. cntowerlights
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Viper's Video Quicktags
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic