Skip to content

Instantly share code, notes, and snippets.

@BronsonQuick
Created July 4, 2013 12:31
Show Gist options
  • Save BronsonQuick/5927295 to your computer and use it in GitHub Desktop.
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
<?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