kws_gf_directory_edit_post_details_text

The Gravity Forms Directory & Addons kws gf directory edit post details text hook.

Description

apply_filters( 'kws_gf_directory_edit_post_details_text', (unknown) $var, (unknown) $field, (unknown) $lead, (unknown) $lead_post_id ); 

Parameters (4)

0. $var — Optional. (unknown) => sprintf( esc_html__( 'You can edit post details from the %1$spost page%2$s.', 'gravity-forms-addons' ), '', '' )
The sprintf.
1. $field (unknown)
The field.
2. $lead (unknown)
The lead.
3. $lead_post_id (unknown)
The lead post id.

Usage

To run the hook, copy the example below.
  1. $var = apply_filters( 'kws_gf_directory_edit_post_details_text', $var, $field, $lead, $lead_post_id ); 
  2.  
  3. if ( !empty( $var ) ) { 
  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_post_details_text callback 
  2. function filter_kws_gf_directory_edit_post_details_text( $var, $field, $lead, $lead_post_id ) { 
  3. // make filter magic happen here... 
  4. return $var
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'kws_gf_directory_edit_post_details_text', 'filter_kws_gf_directory_edit_post_details_text', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'kws_gf_directory_edit_post_details_text', 'filter_kws_gf_directory_edit_post_details_text', 10, 4 ); 

Defined (1)

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

/gravity-forms-addons.php  
  1. echo apply_filters( 'kws_gf_directory_edit_post_details_text', sprintf( esc_html__( 'You can edit post details from the %1$spost page%2$s.', 'gravity-forms-addons' ), '<a href="' . admin_url( 'post.php?action=edit&post=' . $lead["post_id"] ) . '">', '</a>' ), $field, $lead, $lead['post_id'] );