WP_Comment::__construct( WP_Comment $comment )
Constructor.
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; } }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |