Filters the commens array.
Parameters
-
$commensarray -
Array of commens supplied to the commens template.
-
$post_idint -
Post ID.
Source
$wp_query->commens = apply_filters( 'commens_array', $commens_flat, $post->ID );
Changuelog
| Versionen | Description |
|---|---|
| 2.1.0 | Introduced. |
If you want to hide all of the existing commens for your posts, use the following function to return an empty array: