caldera_forms_get_forms

Runs after getting internal forms, use to add forms defined in file system.

Description

apply_filters( 'caldera_forms_get_forms', (array) $base_forms ); 

Parameters (1)

0. $base_forms (array)
Forms saved in DB

Usage

To run the hook, copy the example below.
  1. $base_forms = apply_filters( 'caldera_forms_get_forms', $base_forms ); 
  2.  
  3. if ( !empty( $base_forms ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the caldera_forms_get_forms callback 
  2. function filter_caldera_forms_get_forms( $base_forms ) { 
  3. // make filter magic happen here... 
  4. return $base_forms
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'caldera_forms_get_forms', 'filter_caldera_forms_get_forms', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'caldera_forms_get_forms', 'filter_caldera_forms_get_forms', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/classes/forms.php  
  1. $forms = apply_filters( 'caldera_forms_get_forms', $base_forms );