postmeta_form_keys

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'postmeta_form_keys', array|null $keys, WP_Post $post )

Description Description

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

Parameters Parameters

$keys

Pre-defined meta keys to be used in place of a postmeta query. Default null.

$post

The current post object.

Source Source

File: wp-admin/includes/template.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply