$page->getChanges() method

Return an array of properties that have changed while change tracking was on.


// Get an array of changed field names
$changes = $page->getChanges();


// basic usage
$array = $page->getChanges();

// usage with all arguments
$array = $page->getChanges(bool $getValues = false);


getValues (optional)bool

Specify one of the following, or omit for default setting.

  • false (bool): return array of changed property names (default setting).
  • true (bool): return an associative array containing an array of previous values, indexed by property name, oldest to newest. Requires Wire::trackChangesValues mode to be enabled.
  • 2 (int): Return array where both keys and values are changed property names.

Return value


$page methods and properties

API reference based on ProcessWire core version 3.0.135

Twitter updates

  • New post: Version 3.0.135 of ProcessWire on the dev branch focuses on some .htaccess updates, adds clarity to debug mode, and improves upon the installer— More
    5 July 2019
  • ProcessWire 3.0.133 adds a useful new Page::meta() method for a new type of page-specific persistent data storage, adds the ability for users to create their own bookmarks in Lister, and has a handy and time saving update for the asmSelect input type— More
    14 June 2019
  • New post: This week we’ll take a look at 3 different WEBP image strategies that you can use in ProcessWire 3.0.132+. Then we’ll dive into a major update for the Google Client API module, and finish up by outlining some useful new updates in FormBuilder— More
    31 May 2019

Latest news

  • ProcessWire Weekly #270
    This week in the 270th issue of ProcessWire Weekly we're going to cover the SearchEngine module, feature some recent support forum highlights, and introduce a brand new site of the week. Read on!
    Weekly.pw / 13 July 2019
  • ProcessWire 3.0.135 core updates
    Version 3.0.135 of ProcessWire on the dev branch focuses on .htaccess updates, adds additional layers of security, adds clarity to debug mode, and improves upon the installer.
    Blog / 3 July 2019
  • Subscribe to weekly ProcessWire news

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer