WordPress at Your Fingertips
filter is not described

postmeta_form_keys filter-hook . WP 4.4.0

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.


add_filter( 'postmeta_form_keys', 'filter_function_name_5421', 10, 2 );
function filter_function_name_5421( $keys, $post ){
	// filter...

	return $keys;
Pre-defined meta keys to be used in place of a postmeta query.
Default: null
The current post object.

Where the hook is called

wp-admin/includes/template.php 680
$keys = apply_filters( 'postmeta_form_keys', null, $post );

Where in WP core the hook is used WordPress

Usage not found.