diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index eefdaafb0f10d..c9759d13634a2 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -2828,9 +2828,11 @@ function unregister_post_meta( $post_type, $meta_key ) { * @since 1.2.0 * * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. - * @return mixed An array of values. - * False for an invalid `$post_id` (non-numeric, zero, or negative value). - * An empty string if a valid but non-existing post ID is passed. + * @return array>|false Array of post meta values keyed by meta key, or false on failure. + * Post meta values will always be strings, even for values which would + * otherwise be retrieved individually as arrays or objects via + * {@see get_post_meta()}. An empty array is returned if the post has + * no post meta. */ function get_post_custom( $post_id = 0 ) { $post_id = absint( $post_id );