We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@return
get_post_field()
1 parent e4bf7dc commit 7a680beCopy full SHA for 7a680be
src/wp-includes/post.php
@@ -1180,7 +1180,7 @@ function get_post_ancestors( $post ) {
1180
* @param int|WP_Post $post Optional. Post ID or post object. Defaults to global $post.
1181
* @param string $context Optional. How to filter the field. Accepts 'raw', 'edit', 'db',
1182
* or 'display'. Default 'display'.
1183
- * @return string The value of the post field on success, empty string on failure.
+ * @return int|string|int[] The value of the post field on success, empty string on failure.
1184
*/
1185
function get_post_field( $field, $post = null, $context = 'display' ) {
1186
$post = get_post( $post );
0 commit comments