A WordPress-centric search engine for devs and theme authors



postmeta_form_keys ›

Since4.4.0
Deprecatedn/a
apply_filters( 'postmeta_form_keys', null, $post )
Parameters: (2)
  • (array|null) $keys Pre-defined meta keys to be used in place of a postmeta query. Default null.
    Required: Yes
  • (WP_Post) $post The current post object.
    Required: Yes
Defined at:
Codex:

Filters values for the meta key dropdown in the Custom Fields meta box.

Returning a non-null value will effectively short-circuit and avoid a potentially expensive query against postmeta.





Source

$keys = apply_filters( 'postmeta_form_keys', null, $post );