Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_text

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
1081           }
1082
1083           if ( in_array( 'date_gmt', $fields, true ) ) {
1084                $data['date_gmt'] = mysql_to_rfc3339( $comment->comment_date_gmt );
1085           }
1086
1087           if ( in_array( 'content', $fields, true ) ) {
1088                $data['content'] = array(
1089                     /** This filter is documented in wp-includes/comment-template.php */
1090                     'rendered' => apply_filters( 'comment_text', $comment->comment_content, $comment ),
1091                     'raw'      => $comment->comment_content,
1092                );
1093           }
1094
1095           if ( in_array( 'link', $fields, true ) ) {
1096                $data['link'] = get_comment_link( $comment );
1097           }
1098
1099           if ( in_array( 'status', $fields, true ) ) {