Constructor.
Parameters
$postWP_Post|objectrequired- Post object.
Source
public function __construct( $post ) { foreach ( get_object_vars( $post ) as $key => $value ) { $this->$key = $value; } } Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
Constructor.
$postWP_Post|objectrequiredpublic function __construct( $post ) { foreach ( get_object_vars( $post ) as $key => $value ) { $this->$key = $value; } } | Version | Description |
|---|---|
| 3.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.