Filter hook 'postmeta_form_keys'

in WP Core File wp-admin/includes/template.php at line 707

Description

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.

Occurrences

Filename Line Number
wp-admin/includes/template.php 707

Parameters

Type Name Description
array|null $keys Pre-defined meta keys to be used in place of a postmeta query. Default null.
WP_Post $post The current post object.

PHP Doc

/**
	 * 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.
	 *
	 * @since 4.4.0
	 *
	 * @param array|null $keys Pre-defined meta keys to be used in place of a postmeta query. Default null.
	 * @param WP_Post    $post The current post object.
	 */