Uses
Uses | Description |
---|---|
wp-includes/class-wp-query.php: WP_Query::generate_postdata() | Generate post data. |
Generates post data.
(array|bool) Elements of post, or false on failure.
File: wp-includes/query.php
function generate_postdata( $post ) { global $wp_query; if ( ! empty( $wp_query ) && $wp_query instanceof WP_Query ) { return $wp_query->generate_postdata( $post ); } return false; }
Version | Description |
---|---|
5.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/generate_postdata