WordPress开发者和主题制作者的搜索引擎



postmeta_form_keys ›

Since4.4.0
已弃用n/a
apply_filters( 'postmeta_form_keys', null, $post )
参数: (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
定义在:
文档:

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.





源码

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