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 (1)

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

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