Tribe__Tracker::get_modified_date( string $meta_key, int $post_id )

Get the date(timestamp) of last modification for a tracked field.


Parameters #

$meta_key

(string) (Required) The key for the meta field we're interested in.

$post_id

(int) (Required) The ID of the post to check.


Top ↑

Return #

(boolean|string) The change timestamp or false if the field is not found/empty.


Top ↑

Source #

File: src/Tribe/Tracker.php

	public function get_modified_date( $meta_key, $post_id ) {
		$modified = get_post_meta( $post_id, self::$field_key, true );

		// If the key is missing or empty/null return false - no recorded change.
		return Tribe__Utils__Array::get( $modified, $meta_key, false );
	}

Top ↑

Changelog #

Changelog
Version Description
4.12.3 Introduced.