WP_Sync_Post_Meta_Storage::get_update_countpublicWP 7.0.0

Gets the number of updates stored for a given room.

Method of the class: WP_Sync_Post_Meta_Storage{}

No Hooks.

Returns

Int. Number of updates stored for the room.

Usage

$WP_Sync_Post_Meta_Storage = new WP_Sync_Post_Meta_Storage();
$WP_Sync_Post_Meta_Storage->get_update_count( $room ): int;
$room(string) (required)
Room identifier.

Changelog

Since 7.0.0 Introduced.

WP_Sync_Post_Meta_Storage::get_update_count() code WP 7.0

public function get_update_count( string $room ): int {
	return $this->room_update_counts[ $room ] ?? 0;
}