Facebook_Provider::add_dynamic_properties( mixed|WP_Post $post )

Adds dynamic, time-related, properties to the event object.

This method deals with properties we set, for convenience, on the event object that should not be cached as they are time-dependent; i.e. the time the properties are computed at matters and caching their values would be incorrect.


Parameters

$post

(mixed|WP_Post) (Required) The event post object, as read from the cache, if any.


Top ↑

Return

(WP_Post) The decorated event post object; its dynamic and time-dependent properties correctly set up.


Top ↑

Source

File: src/Tribe/Meetings/Facebook_Provider.php

	public function add_dynamic_properties( $post ) {
		if ( ! $post instanceof WP_Post ) {
			// We should only act on event posts, else bail.
			return $post;
		}

		return $this->container->make( Facebook_Meta::class )->add_dynamic_properties( $post );
	}

Top ↑

Changelog

Changelog
Version Description
1.7.0 Introduced.