WP_Sync_Post_Meta_Storage::get_cursorpublicWP 7.0.0

Gets the current cursor for a given room.

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

Method of the class: WP_Sync_Post_Meta_Storage{}

No Hooks.

Returns

Int. Current cursor for the room.

Usage

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

Changelog

Since 7.0.0 Introduced.

WP_Sync_Post_Meta_Storage::get_cursor() code WP 7.0

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