bxcft_decimal_number_display_filter

Bxcft_decimal_number_display_filter.

Description

apply_filters( 'bxcft_decimal_number_display_filter', $new_field_value, $field_id ); 

Use this filter to modify the appearance of Decimal Number field value.

Parameters (2)

0. $new_field_value
The new field value.
1. $field_id
The field id.

Usage

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

Defined (1)

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

/classes/Bxcft_Field_Type_DecimalNumber.php  
  1. return apply_filters('bxcft_decimal_number_display_filter',