Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_revisions_enabled ›

Desde3.6.0
Obsoleton/a
wp_revisions_enabled ( $post )
Parâmetros:
  • (WP_Post) $post The post object.
    Required: Yes
Retorna:
  • (bool) True if number of revisions to keep isn't zero, false otherwise.
Definido em:
Codex:

Determine if revisions are enabled for a given post.



Fonte

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