wp_post_revision_fields
过滤钩子
apply_filters( '_wp_post_revision_fields', $fields, $post )
- 参数
-
-
(string[])
$fields
List of fields to revision. Contains ‘post_title’,
‘post_content’, and ‘post_excerpt’ by default.- Required: 是
-
(array)
$post
A post array being processed for insertion as a post revision.- Required: 是
-
(string[])
- 定义位置
-
-
wp-includes/revision.php
, line 54
-
wp-includes/revision.php
- 引入
- 4.5.0
- 弃用
- –
Filters the list of fields saved in post revisions.
Included by default: ‘post_title’, ‘post_content’ and ‘post_excerpt’.
Disallowed fields: ‘ID’, ‘post_name’, ‘post_parent’, ‘post_date’,
‘post_date_gmt’, ‘post_status’, ‘post_type’, ‘comment_count’,
and ‘post_author’.
$fields = apply_filters( '_wp_post_revision_fields', $fields, $post );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。