WordPress at a glance
function is not described

wp_get_single_post() WP 1.0.0

Deprecated from version 3.5.0. It is no longer supported and can be removed in future releases. Use get_post() instead.

Retrieve a single post, based on post ID.

Has categories in 'post_category' property or key. Has tags in 'tags_input' property or key.

No Hooks.

Return

WP_Post|null. Post object or array holding post contents and information

Usage

wp_get_single_post( $postid, $mode );
$postid(int)
Post ID.
$mode(string)
How to return result, either OBJECT, ARRAY_N, or ARRAY_A.

Notes

  • See: get_post()

Changelog

Since 1.0.0 Introduced.
Deprecated Since 3.5.0 Use get_post()

Code of wp_get_single_post() WP 5.7

<?php
function wp_get_single_post( $postid = 0, $mode = OBJECT ) {
	_deprecated_function( __FUNCTION__, '3.5.0', 'get_post()' );
	return get_post( $postid, $mode );
}