caldera_forms_do_field_bracket_value

Change value of parse bracket magic tag.

Description

apply_filters( 'caldera_forms_do_field_bracket_value', (string|mixed) $value, (array) $magics, (int) $entry_id, (array) $form ); 

Parameters (4)

0. $value (string|mixed)
Value after parsing.
1. $magics (array)
Result of preg_match
2. $entry_id (int)
Current entry ID
3. $form (array)
Current form ID

Usage

To run the hook, copy the example below.
  1. $value = apply_filters( 'caldera_forms_do_field_bracket_value', $value, $magics, $entry_id, $form ); 
  2.  
  3. if ( !empty( $value ) ) { 
  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_do_field_bracket_value callback 
  2. function filter_caldera_forms_do_field_bracket_value( $value, $magics, $entry_id, $form ) { 
  3. // make filter magic happen here... 
  4. return $value
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'caldera_forms_do_field_bracket_value', 'filter_caldera_forms_do_field_bracket_value', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'caldera_forms_do_field_bracket_value', 'filter_caldera_forms_do_field_bracket_value', 10, 4 ); 

Defined (1)

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

/classes/magic/doer.php  
  1. return apply_filters( 'caldera_forms_do_field_bracket_value', $value, $magics, $entry_id, $form );