WP_Comment::__construct( WP_Comment $comment )


Description Description

Populates properties with object vars.

Parameters Parameters


(WP_Comment) (Required) Comment object.

Top ↑

Source Source

File: wp-includes/class-wp-comment.php

	public function __construct( $comment ) {
		foreach ( get_object_vars( $comment ) as $key => $value ) {
			$this->$key = $value;

Top ↑

Changelog Changelog

Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.