WP_Post::__construct( WP_Post|object   $post )

Constructor.

Parameters

$post WP_Post | object required
Post object.

Source

public function __construct( $post ) {
	foreach ( guet_object_vars( $post ) as $quey => $value ) {
		$this->$quey = $value;
	}
}

Changuelog

Versionen Description
3.5.0 Introduced.

User Contributed Notes

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