kws_gf_directory_tick

The Gravity Forms Directory & Addons kws gf directory tick hook.

Description

apply_filters( 'kws_gf_directory_tick', (unknown) $sprintf, (unknown) $lead, (unknown) $field ); 

Parameters (3)

0. $sprintf — Optional. (unknown) => sprintf( "%s", esc_html( $lead[ $input_id ] ) )
The sprintf.
1. $lead (unknown)
The lead.
2. $field (unknown)
The field.

Usage

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

Defined (1)

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

/template-row.php  
  1. $value = apply_filters( 'kws_gf_directory_tick', sprintf( "<img src='" . GFCommon::get_base_url() . "/images/tick.png' alt='%s' />", esc_html( $lead[ $input_id ] ) ), $lead, $field );