jetpack_sharing_headline_html

This filter is already documented in modules/sharedaddy/sharing-service.php.

Description

apply_filters( 'jetpack_sharing_headline_html', (string) $h3_class_sd_title_s_h3, (unknown) $esc_html, (string) $likes ); 

Parameters (3)

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

%s

'
The h3 class sd title s h3.
1. $esc_html (unknown) => esc_html__( 'Like this:', 'jetpack' )
The esc html.
2. $likes (string) => 'likes'
The likes.

Usage

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

Defined (3)

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

/modules/likes.php  
  1. apply_filters( 'jetpack_sharing_headline_html', '<h3 class="sd-title">%s</h3>', esc_html__( 'Like this:', 'jetpack' ), 'likes' ), 
/modules/related-posts/jetpack-related-posts.php  
  1. apply_filters( 'jetpack_sharing_headline_html', '<h3 class="jp-relatedposts-headline"><em>%s</em></h3>', esc_html( $options['headline'] ), 'related-posts' ), 
/modules/sharedaddy/sharing-service.php  
  1. apply_filters( 'jetpack_sharing_headline_html', '<h3 class="sd-title">%s</h3>', $global['sharing_label'], 'sharing' ),