Support » Plugin: Safe Report Comments » changing the thank you message through the add_filter

  • I’ve changed the ‘Report abuse’ text like mentioned in the section other notes with this code:

    add_filter( 'safe_report_comments_flagging_link_text', function(){ return __( 'This reaction is spam / inappropriate' ); } );

    But now I’m trying to change the “thank you message” trought the add_filter function.
    But it doesn’t seem to be working, this is my code:

    add_filter( 'safe_report_comments_thank_you_message', function(){ return 'Thank you, this is a test message' ); } );

    Could someone please tell me what I’m doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You need to pu the filter in a plugin since the ajax call doesn’t use anything from the theme.


    did it work? would like to change the text too, but don’t know how to “create” a plugin for the add_filter code

    Hey jeffrey-wp. We have forked this plugin, improved upon it, and released it as Crowd Control. If you still need a good comment moderation plugin give it a try.

    We actually did away with the confirmation message for simplicity.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘changing the thank you message through the add_filter’ is closed to new replies.