how to change “awaiting moderation” string?
-
My theme is a child of twenty twelve. I have exhaustively searched in these forums and on the rest of the internet as best I can to locate the answer.
I am trying to change the string “your comment is awaiting moderation” that appears in /wp-includes/comment-template.php
I do not know where to place any alteration into comments.php in my child theme (perhaps it is within
wp_list_comments
?) However, ideally, this change should take place in my child theme’s functions file.After staring at the Twenty Twelve Functions Page at gist.github.com/DanielSantoro/bde3601e1c5b58b30f43, I’ve guessed that the function might be in
twentytwelve_comment( $comment, $args, $depth )
With several trials and no fatal errors (and no string change) I have managed to get this far with my twenty twelve child’s functions.php:/*............... change "awaiting moderation" string on comment form ...............*/ function mytwtwchildtheme_comment($comment) { if ( '0' == $comment->comment_approved ) : ?> <p class="comment-awaiting-moderation"><?php _e( 'All comments are moderated. But as soon as your comment has been approved, it will be displayed universally.', 'twentytwelve' ); ?></p> <?php endif; } add_filter('twentytwelve_comment','mytwtwchildtheme_comment');
While this does not throw any errors, it does not change the string either. Can someone please point me to how to achieve what is probably an insanely easy fix?
Please bear in mind that I only know enough about php coding to get myself in trouble. Having things spelled out is welcome.
Thank you.
-E Morris, etherwork [dot] net [slash] blog << purposely unlinked in attempt to keep spammers at bay (there’s a really good reason that I have WordFence plugin that helped enormously to rid me of bruteforce attacks….)
- The topic ‘how to change “awaiting moderation” string?’ is closed to new replies.