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



wp_revisions_to_keep › WordPress过滤钩子

Since3.6.0
已弃用n/a
apply_filters( 'wp_revisions_to_keep', $num, $post )
参数: (2)
  • (int) $num Number of revisions to store.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
定义在:
文档:

Filters the number of revisions to save for the given post.

Overrides the value of WP_POST_REVISIONS.





源码

$num = apply_filters( 'wp_revisions_to_keep', $num, $post );