cf_custom_fields_get_forms

Get Caldera Forms.

Description

(array|void) cf_custom_fields_get_forms(); 

Includes backwards compat for pre-Caldera Forms 1.3.4

Returns (array|void)


Usage

  1. if ( !function_exists( 'cf_custom_fields_get_forms' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-custom-fields/core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = cf_custom_fields_get_forms(); 
  7.  

Defined (2)

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

/core.php  
  1. function cf_custom_fields_get_forms() { 
  2. if ( class_exists( 'Caldera_Forms_Forms' ) ) { 
  3. $forms = Caldera_Forms_Forms::get_forms( true ); 
  4. } else { 
  5. $forms = Caldera_Forms::get_forms(); 
  6.  
  7. return $forms; 
  1. function cf_custom_fields_get_forms() { 
  2. if ( class_exists( 'Caldera_Forms_Forms' ) ) { 
  3. $forms = Caldera_Forms_Forms::get_forms( true ); 
  4. } else { 
  5. $forms = Caldera_Forms::get_forms(); 
  6.  
  7. return $forms;