WordPress.org

Ready to get started?Download WordPress

Plugin Directory

SmartS3

SmartS3 is a simple video plugin that lets you easily embed Amazon S3 videos into your WordPress blog.

How do I add a custom JavaScript variable?

add_filter( 'smarts3_player_options', 'my_custom_js_function' );

function my_custom_js_function($options) {
    $options['variable_name_here'] = 'variable value here';

    return $options;
}

Requires: 3.5.1 or higher
Compatible up to: 3.5.2
Last Updated: 2014-6-5
Downloads: 615

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.