jetpack_sharing_counts, true

jetpack_sharing_counts, true

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_sharing_counts, true') is found 2 times:

  • /modules/sharedaddy/sharing-service.php line 867
    			 * @since 3.2.0
    			 *
    			 * @param bool true Control the display of counters next to the sharing buttons. Default to true.
    			 */
    			apply_filters( 'jetpack_sharing_counts', true )
    			&& is_array( $jetpack_sharing_counts )
    			&& count( $jetpack_sharing_counts )
    		) :
    			$sharing_post_urls = array_filter( $jetpack_sharing_counts );
    			if ( $sharing_post_urls ) :
    				?>
    
  • /modules/sharedaddy/sharing-service.php line 886
    		wp_enqueue_script( 'sharing-js' );
    		$sharing_js_options = array(
    			'lang'            => get_base_recaptcha_lang_code(),
    			/** This filter is documented in modules/sharedaddy/sharing-service.php */
    			'counts'          => apply_filters( 'jetpack_sharing_counts', true ),
    			'is_stats_active' => Jetpack::is_module_active( 'stats' ),
    		);
    		wp_localize_script( 'sharing-js', 'sharing_js_options', $sharing_js_options );
    	}
    	$sharer  = new Sharing_Service();
    	$enabled = $sharer->get_blog_services();