WP_Sync_Post_Meta_Storage::get_cursor( string $room ): int

In this article

Gets the current cursor for a given room.

Description

The cursor is set during get_updates_after_cursor() and represents the highest meta_id seen for the room’s sync updates.

Parameters

$roomstringrequired
Room identifier.

Return

int Current cursor for the room.

Source

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

Changelog

VersionDescription
7.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.