wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_save_post_revision_post_has_changed › WordPress Filter Hooks

Seit4.1.0
Veraltetn/v
apply_filters( 'wp_save_post_revision_post_has_changed', $post_has_changed, $latest_revision, $post )
Parameter: (3)
  • (bool) $post_has_changed Whether the post has changed.
    Erforderlich: Ja
  • (WP_Post) $latest_revision The latest revision post object.
    Erforderlich: Ja
  • (WP_Post) $post The post object.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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