wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



postmeta_form_keys › WordPress Filter Hooks

Seit4.4.0
Veraltetn/v
apply_filters( 'postmeta_form_keys', null, $post )
Parameter: (2)
  • (array|null) $keys Pre-defined meta keys to be used in place of a postmeta query. Default null.
    Erforderlich: Ja
  • (WP_Post) $post The current post object.
    Erforderlich: Ja
Definiert in:
Codex:

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.





Quellcode

$keys = apply_filters( 'postmeta_form_keys', null, $post );