WP_Query::setup_postdata( ... )

Sets up global post data.

Parameters:
  • $post WP_Post | object | int