kws_gf_directory_backlink

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

Description

apply_filters( 'kws_gf_directory_backlink', (string) $p_class_entryback_a_href_href_onclick_esc_html_entryback_a_p, (unknown) $href, (unknown) $entryback ); 

Parameters (3)

0. $p_class_entryback_a_href_href_onclick_esc_html_entryback_a_p — Optional. (string) => '

' . esc_html( $entryback ) . '

'
The class entryback a href href onclick esc html entryback a p.
1. $href (unknown)
The href.
2. $entryback (unknown)
The entryback.

Usage

To run the hook, copy the example below.
  1. $p_class_entryback_a_href_href_onclick_esc_html_entryback_a_p = apply_filters( 'kws_gf_directory_backlink', $p_class_entryback_a_href_href_onclick_esc_html_entryback_a_p, $href, $entryback ); 
  2.  
  3. if ( !empty( $p_class_entryback_a_href_href_onclick_esc_html_entryback_a_p ) ) { 
  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_backlink callback 
  2. function filter_kws_gf_directory_backlink( $p_class_entryback_a_href_href_onclick_esc_html_entryback_a_p, $href, $entryback ) { 
  3. // make filter magic happen here... 
  4. return $p_class_entryback_a_href_href_onclick_esc_html_entryback_a_p
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'kws_gf_directory_backlink', 'filter_kws_gf_directory_backlink', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'kws_gf_directory_backlink', 'filter_kws_gf_directory_backlink', 10, 3 ); 

Defined (1)

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

/gravity-forms-addons.php  
  1. $link = apply_filters( 'kws_gf_directory_backlink', '<p class="entryback"><a href="' . $href . '"' . $onclick . '>' . esc_html( $entryback ) . '</a></p>', $href, $entryback );