过滤后期修订中保存的字段列表。
原型
apply_filters( '_wp_post_revision_fields', array $fields, array $post )
描述
默认包含:‘post_title’,‘post_content’和’post_excerpt’。
参数
$fields
(array)
要修订的字段列表。默认情况下包含’post_title’,‘post_content’和’post_excerpt’。
$post
(array)
正在处理的帖子数组作为后期修订插入。
源文件
路径:wp-includes/revision.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/_wp_post_revision_fields/