WP_Post::__construct( WP_Post|object $post )

Constructor.


Description Description


Parameters Parameters

$post

(WP_Post|object) (Required) Post object.


Top ↑

Source Source

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

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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