lib/Post.php
public function update( $field, $value ) {
		if ( isset($this->ID) ) {
			update_post_meta($this->ID, $field, $value);
			$this->$field = $value;
		}
	}
public function update( $field, $value ) {
		if ( isset($this->ID) ) {
			update_post_meta($this->ID, $field, $value);
			$this->$field = $value;
		}
	}
public function update ( $ field , $ value ) { if ( isset ( $ this -> ID ) ) { update_post_meta ( $ this -> ID , $ field , $ value ) ; $ this -> $ field = $ value ; } }
updates the post_meta of the current object with the given value
@param string $field
@param mixed $value
updates the post_meta of the current object with the given value