wphooks.info - get_comment

get_comment

(trunk - 5.0-alpha-42719)

The hook occurs in the following file:

wp-includes/comment.php:
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
		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;