A mountain top volcano lake -- IE a Caldera

This filter is used to prevent loading of all CSS and JavaScript from the post editor for any or all post types.


  • This filter was added in Caldera Forms 1.5.7
  • This filter causes the insert form button to stop working, but it does not remove it.

Filter Parameters

  • $use Boolean. Return true to load CSS/JS. Default is true.
  • $post_type string. Current post type


These examples show how to remove the JavaScript and CSS powering the Caldera Forms form inserter button and form preview in the post editor for one or all post types:

Remove Caldera Forms JavaScript and CSS From Post Editor

Remove Caldera Forms JavaScript and CSS From Post Editor

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