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



wp_post_revision_field_{$field} ›

Since3.6.0
已弃用n/a
apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' )
参数: (4)
  • (string) $compare_from->$field The current revision field to compare to or from.
    Required: Yes
  • (string) $field The current revision field.
    Required: Yes
  • (WP_Post) $compare_from The revision post object to compare to or from.
    Required: Yes
  • (string) null The context of whether the current revision is the old or the new one. Values are 'to' or 'from'.
    Required: Yes
定义在:
文档:

Contextually filter a post revision field.

The dynamic portion of the hook name, $field, corresponds to each of the post fields of the revision object being iterated over in a foreach statement.





源码

$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_{$field}", $compare_from->$field, $field, $compare_from, 'from' ) : '';