src/properties/class-papi-property-post.php
protected function get_post_value( $post ) {
		$meta_key = $this->get_setting( 'meta_key' );

		if ( is_numeric( $post ) ) {
			$post_id = $post;
		} else if ( ! empty( $post ) ) {
			$post = get_post( $post );
			if ( $post instanceof WP_Post === false ) {
				return 0;
			}

			$post_id = $post->ID;
		}

		if ( empty( $post_id ) ) {
			return 0;
		}

		if ( ! empty( $meta_key ) ) {
			$value = get_post_meta( $post_id, $meta_key, true );
		} else {
			$value = $post_id;
		}

		return $value;
	}
protected function get_post_value( $post ) {
		$meta_key = $this->get_setting( 'meta_key' );

		if ( is_numeric( $post ) ) {
			$post_id = $post;
		} else if ( ! empty( $post ) ) {
			$post = get_post( $post );
			if ( $post instanceof WP_Post === false ) {
				return 0;
			}

			$post_id = $post->ID;
		}

		if ( empty( $post_id ) ) {
			return 0;
		}

		if ( ! empty( $meta_key ) ) {
			$value = get_post_meta( $post_id, $meta_key, true );
		} else {
			$value = $post_id;
		}

		return $value;
	}
Get matching value based on key from a post.

@param  mixed $post

@return mixed