WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. cntowerlights
    Member
    Posted 11 months 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?

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

  2. cntowerlights
    Member
    Posted 11 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic