WP_Post::get_instance

SummerySummery

Retrieve WP_Post instance.

Syntax

WP_Post::get_instance( int $post_id )

ParametersParameters

$post_id

(int) (Required) Post ID.

ReturnReturn

(WP_Post|false) Post object, false otherwise.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.5.0 Introduced.
Scroll to Top