Uma área de pesquisa sobre o WordPress para devs e autores do tema



postmeta_form_keys ›

Desde4.4.0
Obsoleton/a
apply_filters( 'postmeta_form_keys', null, $post )
Parâmetros: (2)
  • (array|null) $keys Pre-defined meta keys to be used in place of a postmeta query. Default null.
    Required: Yes
  • (WP_Post) $post The current post object.
    Required: Yes
Definido em:
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.





Fonte

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