kws_gf_directory_edit_access_error_message

The WordPress Core kws gf directory edit access error message hook.

Description

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

Parameters (3)

0. $sprintf — Optional. (unknown) => sprintf( esc_html__( "%sThe link to edit this entry is not valid; it may have expired.%s", 'gravity-forms-addons' ), "

", "

" )
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_edit_access_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_edit_access_error_message callback 
  2. function filter_kws_gf_directory_edit_access_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_edit_access_error_message', 'filter_kws_gf_directory_edit_access_error_message', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'kws_gf_directory_edit_access_error_message', 'filter_kws_gf_directory_edit_access_error_message', 10, 3 ); 

Defined (1)

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

/gravity-forms-addons.php  
  1. echo apply_filters( 'kws_gf_directory_edit_access_error_message', sprintf( esc_html__( "%sThe link to edit this entry is not valid; it may have expired.%s", 'gravity-forms-addons' ), "<p class='error' id='message' style='padding:.5em .75em; background-color:#ffffcc; border:1px solid #ccc;'>", "</p>" ), $lead, $Form );