WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
859 | 'author_name' => $comment->comment_author, |
860 | 'author_email' => $comment->comment_author_email, |
861 | 'author_url' => $comment->comment_author_url, |
862 | 'author_ip' => $comment->comment_author_IP, |
863 | 'author_user_agent' => $comment->comment_agent, |
864 | 'date' => mysql_to_rfc3339( $comment->comment_date ), |
865 | 'date_gmt' => mysql_to_rfc3339( $comment->comment_date_gmt ), |
866 | 'content' => array( |
867 | /** This filter is documented in wp-includes/comment-template.php */ |
868 | 'rendered' => apply_filters( 'comment_text', $comment->comment_content, $comment ), |
869 | 'raw' => $comment->comment_content, |
870 | ), |
871 | 'link' => get_comment_link( $comment ), |
872 | 'status' => $this->prepare_status_response( $comment->comment_approved ), |
873 | 'type' => get_comment_type( $comment->comment_ID ), |
874 | ); |
875 |
|
876 | $schema = $this->get_item_schema(); |
877 |
|