Wire::setTrackChanges() method

Turn change tracking ON or OFF


// Enable change tracking

// Disable change tracking

// Enable change tracking and remember values


// basic usage

// usage with all arguments
$wire->setTrackChanges($trackChanges = true);


trackChanges (optional)bool, int

Specify one of the following:

  • true (bool): Enables change tracking.
  • false (bool): Disables change tracking
  • Wire::trackChangesOn (constant): Enables change tracking (same as specifying boolean true).
  • Wire::trackChangesValues (constant): Enables tracking of changed values when change tracking is already on. This uses more memory since it keeps previous values, so it is not enabled by default. Once enabled, the setting will persist through boolean true|false arguments.

Return value


Object instance it was called from (method supports fluent interface).

Wire methods and properties

API reference based on ProcessWire core version 3.0.209

Twitter updates

  • Adding custom actions to ProcessWire image fields in the admin, part of this week’s dev branch additions: More
    27 January 2023
  • ProcessWire 3.0.210 new main/master version released— More
    6 January 2023
  • ProcessWire 3.0.209: Core updates and an interesting AI that knows ProcessWire– More
    30 December 2022

Latest news

  • ProcessWire Weekly #455
    In the 455th issue of ProcessWire Weekly we'll check out the latest core updates, introduce a new third party module called JkPublishPages, and more. Read on!
    Weekly.pw / 28 January 2023
  • ProcessWire 3.0.210 new main/master version
    140 commits, 55 resolved issues, dozens of new features, eight contributors, and five new pull requests make yet another great new version of ProcessWire.
    Blog / 6 January 2023
  • Subscribe to weekly ProcessWire news

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH