wphooks.info - get_comment

get_comment

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/comment.php:
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
		return null;
	}

	/**
	 * Fires after a comment is retrieved.
	 *
	 * @since 2.3.0
	 *
	 * @param mixed $_comment Comment data.
	 */
	$_comment = apply_filters( 'get_comment', $_comment );

	if ( $output == OBJECT ) {
		return $_comment;
	} elseif ( $output == ARRAY_A ) {
		return $_comment->to_array();
	} elseif ( $output == ARRAY_N ) {
		return array_values( $_comment->to_array() );
	}
	return $_comment;