caldera_forms_script_urls

Caldera Forms -- Responsive, drag and drop form builder.

This filter holds an array of URLs of scripts to be enqueued, keyed by handle. This example shows how to switch to using a CDN to load Caldera Forms’ validator script, which is parsley.js

add_filter( 'caldera_forms_script_urls', function( $scripts ) {
	$scripts[ 'validator' ] = '//cdnjs.cloudflare.com/ajax/libs/parsley.js/2.1.2/parsley.min.js';

	return $scripts;
}, 10 );

This filter was added in Caldera Forms 1.3.1

Where Does This Code Go?

When using WordPress hooks to customize Caldera Forms or other plugins you should not modify the plugin files, or you will lose your changes when you update the plugin. Instead you should create a small plugin to hold the custom code. It's easy, learn how here.

Technically you can add the custom code to your theme's functions.php, but then you will not be able to change your theme and keep these customizations.

Learn More