Created
July 4, 2013 12:31
-
-
Save BronsonQuick/5927295 to your computer and use it in GitHub Desktop.
Add an action for when a comment goes from pending to approved in WordPress. This will happen if Settings->Discussion is has 'Comment author must have a previously approved comment' checked in WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'comment_unapproved_to_approved', 'sennza_run_approved_comment_awesomeness', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment