WP_Comment::__construct

Advertisement

Summery Summery

Constructor.

Syntax Syntax

WP_Comment::__construct( WP_Comment $comment )

Description Description

Populates properties with object vars.

Parameters Parameters

$comment

(WP_Comment) (Required) Comment object.

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?