generate_postdata()

最后更新于:2021-11-26 04:10:14

generate_postdata( GC_Post|object|int$post)

Generates post data.

参数

$post

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

响应

(array|false) Elements of post, or false on failure.

源文件

文件: gc-includes/query.php

function generate_postdata( $post ) {
	global $gc_query;

	if ( ! empty( $gc_query ) && $gc_query instanceof GC_Query ) {
		return $gc_query->generate_postdata( $post );
	}

	return false;
}