twentysixteen_remove_share

Remove ratings from excerpts that are used as intro on blog index, single, and archive pages.

Description

twentysixteen_remove_share(); 

Usage

  1. if ( !function_exists( 'twentysixteen_remove_share' ) ) { 
  2. require_once '/modules/theme-tools/compat/twentysixteen.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentysixteen_remove_share(); 
  7.  

Defined (1)

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

/modules/theme-tools/compat/twentysixteen.php  
  1. function twentysixteen_remove_share() { 
  2. if ( is_single() || is_archive() || is_home() ) { 
  3. remove_filter( 'the_excerpt', 'sharing_display', 19 ); 
  4. if ( class_exists( 'Jetpack_Likes' ) ) { 
  5. remove_filter( 'the_excerpt', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );