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



pre_post_{$field} › WordPress过滤钩子

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

Filters the value of a specific field before saving.

Only applied to post fields with a name which is prefixed with `post_`. The dynamic portion of the hook name, `$field_no_prefix`, refers to the post field name minus the `post_` prefix. Possible filter names include: - `pre_post_ID` - `pre_post_comment_status` - `pre_post_ping_status` - `pre_post_to_ping` - `pre_post_pinged` - `pre_post_guid` - `pre_post_menu_order` - `pre_post_comment_count`




源码

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