| @@ -15,9 +15,9 @@ | ||
| 15 | 15 | exit; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * Admin Columns Class. | |
| 19 | + * Displays the post view count in content and feeds. | |
| 20 | 20 | * |
| 21 | 21 | * @since 3.3.0 |
| 22 | 22 | */ |
| 23 | 23 | class Counter { |
| @@ -236,8 +236,15 @@ | ||
| 236 | 236 | } |
| 237 | 237 | } |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | + /** | |
| 241 | + * Filters the formatted view count displayed for a post. | |
| 242 | + * | |
| 243 | + * @since 2.2.0 | |
| 244 | + * | |
| 245 | + * @param string $count_display The formatted count text. | |
| 246 | + */ | |
| 240 | 247 | return apply_filters( 'tptn_post_count', ( $is_zero_total_count && ! $is_singular ) ? $count_disp_form_zero : $count_disp_form ); |
| 241 | 248 | } |
| 242 | 249 | |
| 243 | 250 | /** |
| @@ -301,9 +308,9 @@ | ||
| 301 | 308 | $post_count = number_format_i18n( $post_count ); |
| 302 | 309 | } |
| 303 | 310 | |
| 304 | 311 | /** |
| 305 | - * Returns the post count. | |
| 312 | + * Filters the post count returned for a post. | |
| 306 | 313 | * |
| 307 | 314 | * @since 2.6.0 |
| 308 | 315 | * |
| 309 | 316 | * @param int|string $post_count Post count. |