caldera_forms_conditional_recipients_fields

Get fields for conditional recipients processor.

Description

(array) caldera_forms_conditional_recipients_fields(); 

Returns (array)


Usage

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

Defined (1)

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

/processors/functions.php  
  1. function caldera_forms_conditional_recipients_fields() { 
  2. return array( 
  3. array( 
  4. 'id' => 'conditional-recipient',  
  5. 'type' => email,  
  6. 'label' => __( 'Email Address', 'caldera-forms' ),  
  7. 'magic' => true 
  8. ),  
  9. array( 
  10. 'id' => 'remove-default',  
  11. 'type' => 'checkbox',  
  12. 'label' => __( 'Remove Default?', 'caldera-forms' ),  
  13. 'description' => __( 'If this conditional is used, default recipient will be removed from recipients', 'caldera-forms' ) 
  14. ); 
  15.