WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/comment (old status) to (new status)

Usage

<?php
add_action('comment_unapproved_to_approved', 'comment_approved');

function comment_approved($comment) {
    if(is_email($comment->comment_author_email)) {
        //do something
    }
}
?>

Source File

comment_(old status)_to_(new status) action hook is located in wp-includes/comment.php

See also

This page is marked as incomplete. You can help Codex by expanding it.