Filters values for the meta key dropdown in the Custom Fields meta box.
Description
Returning a non-null value will effectively short-circuit and avoid a potentially expensive query against postmeta.
Parameters
$keysarray|null- Pre-defined meta keys to be used in place of a postmeta query. Default null.
$postWP_Post- The current post object.
Source
$keys = apply_filters( 'postmeta_form_keys', null, $post );
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.