src/Axolotl/Model.php
public function get_changed_wp_object_attributes() {
		$changed = array();

		foreach ( $this->get_wp_object_keys() as $key ) {
			if ( $this->get_attribute( $key ) !==
				 $this->get_original_attribute( $key )
			) {
				$changed[ $key ] = $this->get_attribute( $key );
			}
		}

		return $changed;
	}
public function get_changed_wp_object_attributes() {
		$changed = array();

		foreach ( $this->get_wp_object_keys() as $key ) {
			if ( $this->get_attribute( $key ) !==
				 $this->get_original_attribute( $key )
			) {
				$changed[ $key ] = $this->get_attribute( $key );
			}
		}

		return $changed;
	}
public function get_changed_wp_object_attributes ( ) { $ changed = array ( ) ; foreach ( $ this -> get_wp_object_keys ( ) as $ key ) { if ( $ this -> get_attribute ( $ key ) !== $ this -> get_original_attribute ( $ key ) ) { $ changed [ $ key ] = $ this -> get_attribute ( $ key ) ; } } return $ changed ; }
Get the model attributes on the WordPress object
that have changed compared to the model's
original attributes.

@return array
Get the model attributes on the WordPress object that have changed compared to the model s original attributes .