Contents

bp_media_add_dropzone_js()

Enqueue the JS for dropzone.

Description

Source

File: bp-media/bp-media-cssjs.php

function bp_media_add_dropzone_js() {
	// Include the dropzone JS
    $url = buddypress()->plugin_url . 'bp-media/js/';
    wp_enqueue_script( 'bp-media-dropzone', "{$url}dropzone.min.js", false, bp_get_version() );
    //wp_enqueue_script( 'bp-media-dropzone-wrapper', "{$url}dropzone-wrapper.js", array( 'jquery' ), bp_get_version() );
    //wp_enqueue_script( 'bp-media-dropzone-main', "{$url}dropzone-main.js", false, bp_get_version(), true );
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.