get_post_custom


get_post_custom ( $post_id = 0 )

Parameters:
  • (int) $post_id Optional. Post ID. Default is ID of the global $post.
Returns:
  • (array) Post meta for the given post.
Defined at:

Description

Retrieve post meta fields, based on post ID.

The post meta fields are retrieved from the cache where possible, so the function is optimized to be called more than once.

Related Functions

get_post_custom_keys, post_custom, get_post_custom_values, get_post_time, get_post_ancestors

Top Google Results

User discussions

wpseek mobile