WordPress.org

Make WordPress Core

Ticket #5726: hook1.diff

File hook1.diff, 476 bytes (added by fitztrev, 6 years ago)

wp_tag_counts hook

  • wp-includes/category-template.php

     
    374374        if ( 'DESC' == $order ) 
    375375                $counts = array_reverse( $counts, true ); 
    376376 
     377        $counts = apply_filters( 'wp_tag_counts', $counts ); 
     378 
    377379        $a = array(); 
    378380 
    379381        $rel = ( is_object($wp_rewrite) && $wp_rewrite->using_permalinks() ) ? ' rel="tag"' : '';