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



{$field}_pre › WordPress过滤钩子

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

Filters the value of a specific post field before saving.

Only applied to post fields with a name which is *not* prefixed with `post_`. The dynamic portion of the hook name, `$field`, refers to the post field name. Possible filter names include: - `ID_pre` - `comment_status_pre` - `ping_status_pre` - `to_ping_pre` - `pinged_pre` - `guid_pre` - `menu_order_pre` - `comment_count_pre`


Related Functions: wp_richedit_pre, clean_pre, is_preview


源码

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