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



wp_revisions_enabled ›

Since3.6.0
已弃用n/a
wp_revisions_enabled ( $post )
参数:
  • (WP_Post) $post The post object.
    Required: Yes
返回:
  • (bool) True if number of revisions to keep isn't zero, false otherwise.
定义在:
文档:

Determine if revisions are enabled for a given post.



源码

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