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



wp_save_post_revision_check_for_changes › Filtr WordPress Hooks

Od3.6.0
Przestarzałyn/a
› apply_filters( 'wp_save_post_revision_check_for_changes', true, $latest_revision, $post )
Parametry: (3)
  • () check_for_changes Whether to check for changes before saving a new revision. Default true.
    Wymagane: Tak
  • () latest_revision The latest revision post object.
    Wymagane: Tak
  • () post The post object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether the post has changed since the latest revision.

By default a revision is saved only if one of the revisioned fields has changed. This filter can override that so a revision is saved even if nothing has changed.




Źródło

if ( isset( $latest_revision ) && apply_filters( 'wp_save_post_revision_check_for_changes', true, $latest_revision, $post ) ) {