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



{$field}_pre ›

Since2.3.0
已弃用n/a
apply_filters( "{$field}_pre", $value )
参数:
  • (mixed) $value Value of the post field.
    Required: Yes
定义在:
文档:

Filters the value of a specific post field before saving.

The dynamic portion of the hook name, $field, refers to the post field name.





源码

$value = apply_filters( "{$field}_pre", $value );