kws_gf_directory_lead_error_message

The Gravity Forms Directory & Addons kws gf directory lead error message hook.

Description

apply_filters( 'kws_gf_directory_lead_error_message', $sprintf, (unknown) $lead, (unknown) $form ); 

Parameters (3)

0. $sprintf — Optional.
The sprintf.
1. $lead (unknown)
The lead.
2. $form (unknown)
The form.

Usage

To run the hook, copy the example below.
  1. $sprintf = apply_filters( 'kws_gf_directory_lead_error_message', $sprintf, $lead, $form ); 
  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_lead_error_message callback 
  2. function filter_kws_gf_directory_lead_error_message( $sprintf, $lead, $form ) { 
  3. // make filter magic happen here... 
  4. return $sprintf
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'kws_gf_directory_lead_error_message', 'filter_kws_gf_directory_lead_error_message', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'kws_gf_directory_lead_error_message', 'filter_kws_gf_directory_lead_error_message', 10, 3 ); 

Defined (1)

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

/gravity-forms-addons.php  
  1. echo esc_html( apply_filters('kws_gf_directory_lead_error_message', sprintf( __("%sThere were errors with the edit you made.%s%s", 'gravity-forms-addons'), "<div class='error' id='message' style='padding:.5em .75em; background-color:#ffffcc; border:1px solid #ccc;'><p>", "</p>", $validation_message.'</div>'), $lead, $Form) );