Created
April 18, 2015 17:55
-
-
Save ajaydsouza/8f996d3f633089cd8591 to your computer and use it in GitHub Desktop.
Top 10 - Don't track nextpage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filter_tptn_viewed_count function. | |
* | |
* @param string $output Top 10 tracker script | |
* @return string Filtered tracker script | |
*/ | |
function filter_tptn_viewed_count( $output ) { | |
global $wp_query; | |
if ( $wp_query->query_vars['page'] > 1 ) { | |
$output = ''; | |
} | |
return $output; | |
} | |
add_filter( 'tptn_viewed_count', 'filter_tptn_viewed_count' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment