Safe Report Comments free WordPress plugin

Description

Plugin profile Category: Uncategorized

Safe Report Comments free WordPress 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 or not he want to approve the comment or not. 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 script should hook in just fine in most existing themes as it attaches itsself after the comment-reply link via the comment_reply_link filter. In case this does not work out you can place the flagging link manually by defining no_autostart_safe_report_comments in your themes’ functions.php file and initializing the class via $safe_report_comments = new Safe_Report_Comments(false);. Here is an example of a custom setup via functions.php and placing the link comments callback function. In functions.php: //flag comments plugin included in themes’ functions.php – disable plugin. define( ‘no_autostart_safe_report_comments’, true ); include_once( ‘replace-with-path-to/safe-report-comments/safe-report-comments.php’); // make sure not to auto-attach to 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: https://codex.wordpress.org/Template_Tags/wp_list_comments place the following action which will print the link. A possible callback function could look like this: function mytheme_comment($comment, $args, $depth) { $GLOBALS[‘comment’] = $comment; ?>
  • id=”li-comment-“>
    ‘ ); ?> %s says:‘), get_comment_author_link()) ?>
    comment_approved == ‘0’) : ?>
  • WPMarket

    Photo by Karolina Grabowska from Pexels: https://www.pexels.com/photo/a-red-sale-tag-on-a-miniature-shopping-cart-placed-on-a-macbook-laptop-5632381/

    Post your Add here!

    Interested to post
    your products?

    Ask us for Marketing
    and Advertising options.

    We would love to help you!

    Sites Using

    Safe Report Comments free WordPress plugin