setup_postdata( WP_Post|object|int $post )

Set up global post data.


25 related functions found for: setup_postdata

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordspostdata, query-php, setup, wp-includes
wp-parser-packageQuery, WordPress
wp-parser-source-filewp-includes/query.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • postdata
  • Query
  • query-php
  • setup
  • wp-includes
  • wp-includes/query.php
  • query

Top ↑

Description Description


Top ↑

Parameters Parameters

$post

(WP_Post|object|int) (Required) WP_Post instance or Post ID/object.


Top ↑

Return Return

(bool) True when finished.


Top ↑

Source Source

File: wp-includes/query.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Added the ability to pass a post ID to $post.
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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