WordPress.org

Make WordPress Core

Ticket #6244: custom_dashboard_counts_filter.patch

File custom_dashboard_counts_filter.patch, 471 bytes (added by nerrad, 7 years ago)

adds filter for post count sentence in dashboard

  • wp-admin/index.php

     
    8585 
    8686// There is always a category 
    8787$sentence = sprintf( __( 'You have %1$s, contained within %2$s and %3$s.' ), $post_type_text, $cats_text, $tags_text ); 
     88$sentence = apply_filters( 'custom_dashboard_counts', $sentence ); 
    8889 
    8990?> 
    9091<p class="youhave"><?php echo $sentence; ?></p>