WPDev.one
Core Function
View Source on Trac ↗

get_post_custom_keys()

get_post_custom_keys( mixed $post_id = 0 )

Retrieves meta field names for a post.

Parameters 0 required

Name / Type Description
$post_id
int

Optional. Post ID. Default is the ID of the global `$post`.

Return Value

((array)
| void) Array of the keys, if retrieved.

Function Information

Since Version
1.2.0
Source File
wp-includes/post.php
Advertisement