get_post_custom_keys


get_post_custom_keys ( $post_id = 0 )

Parameters:
  • (int) $post_id Optional. Post ID. Default is ID of the global $post.
Returns:
  • (array|void) Array of the keys, if retrieved.
Defined at:

Description

Retrieve meta field names for a post.

If there are no meta fields, then nothing (null) will be returned.

Related Functions

get_post_custom_values, get_post_custom, get_post_ancestors, get_post_time, get_post_to_edit

Top Google Results

User discussions

wpseek mobile