On this page
apply_filters( 'postmeta_form_keys', array|null $keys, WP_Post $post )
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
File: wp-admin/includes/template.php. View all references
$keys = apply_filters( 'postmeta_form_keys', null, $post );
Related
Used By
| Used By | Description |
|---|---|
| meta_form() wp-admin/includes/template.php | Prints the form in the Custom Fields meta box. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/postmeta_form_keys