wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_save_post_revision_post_has_changed › WordPress Filter Hooks

Da4.1.0
Deprecaton/a
› apply_filters( 'wp_save_post_revision_post_has_changed', $post_has_changed, $latest_revision, $post )
Parametri: (3)
  • () post_has_changed Whether the post has changed.
    Richiesto: Sì
  • () latest_revision The latest revision post object.
    Richiesto: Sì
  • () post The post object.
    Richiesto: Sì
Definito a:
Codex:

Filters whether a post has changed.

By default a revision is saved only if one of the revisioned fields has changed. This filter allows for additional checks to determine if there were changes.




Sorgenti

$post_has_changed = (bool) apply_filters( 'wp_save_post_revision_post_has_changed', $post_has_changed, $latest_revision, $post );