Skip to content
Docs
Get RestroPress

Filter

rpress_count_payment_notes_in_comments

Updated
On this page

Filters whether payment notes are included in WordPress comment counts.

Runs in rpress_remove_payment_notes_in_comment_counts(), which is attached to wp_count_comments and acts only on the Dashboard (index.php) and Comments (edit-comments.php) screens. By default the filter returns false and payment notes are excluded from the counts. Return true to count them like ordinary comments.

Parameters#

ParameterTypeDescription
$count_notesboolDefault value; false excludes payment notes.

Return value#

bool. True to include payment notes in comment counts.

Example#

add_filter( 'rpress_count_payment_notes_in_comments', '__return_true' );

Source#

Applied in:

  • includes/payments/functions.php (line 1848), in rpress_remove_payment_notes_in_comment_counts()

See also#

Was this page helpful?