sharing_title

Filter the sharing title.

Description

apply_filters( 'sharing_title', (string) $post_post_title, (int) $post_id, (int) $this_id ); 

Parameters (3)

0. $post_post_title (string)
The post post title.
1. $post_id (int)
The post id.
2. $this_id (int)
The this id.

Usage

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

Defined (1)

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

/modules/sharedaddy/sharing-sources.php  
  1. $title = apply_filters( 'sharing_title', $post->post_title, $post_id, $this->id );