wp_revisions_enabled

函数
wp_revisions_enabled ( $post )
参数
  • (WP_Post) $post The post object.
    Required:
返回值
  • (bool) True if number of revisions to keep isn't zero, false otherwise.
定义位置
相关方法
wp_revisions_to_keeppost_revisions_meta_box_wp_post_revision_fieldswp_post_revision_titlewp_print_revision_templates
引入
3.6.0
弃用
-

决定是否对一个给定的文章启用修订功能。

function wp_revisions_enabled( $post ) {
	return wp_revisions_to_keep( $post ) !== 0;
}