Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_comment

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1107                $comment_author_url,
1108                $comment_date,
1109                $comment_date_gmt,
1110                $comment_ID) );
1111
1112      $rval = $wpdb->rows_affected;
1113
1114      clean_comment_cache($comment_ID);
1115      wp_update_comment_count($comment_post_ID);
1116      do_action('edit_comment', $comment_ID);
1117      $comment = get_comment($comment_ID);
1118      wp_transition_comment_status($comment_approved, $comment->comment_approved, $comment);
1119      return $rval;
1120 }
1121
1122 /**
1123  * Whether to defer comment counting.
1124  *
1125  * When setting $defer to true, all post comment counts will not be updated