caldera_forms_magic_form

a nice picture of the view of the Caldera in Santorini

This filter lets you change (or load) the form configuration when parsing magic tags.

It exposes 2 parameters:

  • $form – This is an array with the form configuration, which you may alter or replace. It may be null in some cases.
    • This filter was added so the Caldera_Forms_Email_Resend class could provide a form config when resending emails.
  • $entry_id – This is the current entry ID as an integer
    • This may be null depending on context

This filter was added in Caldera Forms 1.5.2

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