Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_revisions_enabled ›

Da3.6.0
Deprecaton/a
wp_revisions_enabled ( $post )
Parametri:
  • (WP_Post) $post The post object.
    Richiesto:
Ritorna:
  • (bool) True if number of revisions to keep isn't zero, false otherwise.
Definito a:
Codex:

Determine if revisions are enabled for a given post.



Sorgenti

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