This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
If you don't love the Dropzone uploader or are using a custom uploader, you can disable it.
Using this hook does not block dropzone uploads from happening. For added security, use this code snippet to disallow uploads that could happen before the entry is created. It is done by blocking the Dropzone action and not loading the Dropzone.
Usage
add_filter( 'frm_load_dropzone', '__return_false' );
Parameters
- None
Examples
Turn off Dropzone on one page
add_filter( 'frm_load_dropzone', 'stop_dropzone' );
function stop_dropzone( $load_it ) {
if ( is_page(25) ) { // set the page or other conditions here
$load_it = false;
}
return $load_it;
}