wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_save_post_revision_post_has_changed › Filtr WordPress Hooks

Od4.1.0
Przestarzałyn/a
apply_filters( 'wp_save_post_revision_post_has_changed', $post_has_changed, $latest_revision, $post )
Parametry: (3)
  • (bool) $post_has_changed Whether the post has changed.
    Wymagane: Tak
  • (WP_Post) $latest_revision The latest revision post object.
    Wymagane: Tak
  • (WP_Post) $post The post object.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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