WordPress plugin intelligence profile

Safe Report Comments

This plugin gives your visitors the possibility to report a comment as inappropriate. After a set threshold is reached the comment is put into moderat …

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.0
Current version0.5.0
WordPress coverageTested up to WordPress 7.0
Minimum stackWP 6.4 · PHP 7.4
Directory statusactive
Last directory update20 Aug 20262mo ago
Active installations100Adoption metric — not a quality score
WordPress.org rating3.0 / 5 from 7 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Safe Report Comments version 0.5.0 as active, updated 2mo ago and tested up to WordPress 7.0.

Overview

About this plugin

This plugin gives your visitors the possibility to report a comment as inappropriate. After a set threshold is reached the comment is put into moderation where the moderator can decide whether to approve it. If a comment is approved by a moderator it will not be auto-moderated again while still counting the amount of reports.

Customizations

By default this plugin should work with most existing themes without any changes. It appends the flagging link to each comment and then, in the browser, moves it next to that comment’s reply link. The reply link is located via its core data-commentid attribute, so placement does not depend on your theme’s specific markup.

The report link ships unstyled and inherits your theme’s link styles from wherever it appears, so it can look different next to a reply link than at the end of a comment (the deepest threading level, which has no reply link). safe-comments-report-link class in your theme’s CSS.

If you would rather control the placement yourself, you can place the flagging link manually. php file and initialize the class with auto-attachment disabled: $safe_report_comments = new Safe_Report_Comments( false );.

php that places the flagging link via a comment callback function.

php:

php - disable plugin. php' ); // Make sure not to auto-attach to the comment reply link. $safe_report_comments = new Safe_Report_Comments( false );

// Change link layout to have a pipe prepended. add_filter( 'safe_report_comments_flagging_link', 'adjust_flagging_link' ); function adjust_flagging_link( $link ) { return ' | '. $link; }

// Adjust the text to "Report abuse" rather than "Report comment". add_filter( 'safe_report_comments_flagging_link_text', 'adjust_flagging_text' ); function adjust_flagging_text( $text ) { return 'Report abuse'; }

In your custom comment callback function used by wp_list_comments, place the following action, which prints the link:

>

A possible callback function could look like this:

></div>

>

php }

There are various other actions and filters within the plugin that allow you to alter its behaviour. Please see the inline documentation for details.

Notes

At the maximum threading depth WordPress does not render a reply link, so in automatic mode the flagging link stays at the end of the comment rather than moving next to a reply link. The link still works as normal. Earlier versions attached to the reply link itself and so showed no flagging link at all at this depth.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • report comments
  • flagging
  • inappropriate
  • spam
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 7.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 7.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.0
Minimum requirementsWordPress 6.4 · PHP 7.4
Update activity20 Aug 20262mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.