WPDev.one
Core Function
View Source on Trac ↗

setup_postdata()

setup_postdata( mixed $post )

Set up global post data.

Parameters 1 required

Name / Type Description
(WP_Post

| object | int) $post WP_Post instance or Post ID/object.

Required

Return Value

(bool)
True when finished.

Function Information

Since Version
1.5.0
Source File
wp-includes/query.php
Advertisement