get_post_custom_values


get_post_custom_values ( $key = '', $post_id = 0 )

Parameters:
  • (string) $key Optional. Meta field key. Default empty.
  • (int) $post_id Optional. Post ID. Default is ID of the global $post.
Returns:
  • (array|null) Meta field values.
Defined at:

Description

Retrieve values for a custom post field.

The parameters must not be considered optional. All of the post meta fields will be retrieved and only the meta field key values returned.

Related Functions

get_post_custom_keys, get_post_custom, get_post_statuses, get_post_status, get_post_ancestors

Top Google Results

User discussions

wpseek mobile