WP_Sync_Storage::remove_updates_before_cursor
Removes updates from a room that are older than the provided cursor.
Method of the class: WP_Sync_Storage{}
No Hooks.
Returns
true|false. True on success, false on failure.
Usage
$WP_Sync_Storage = new WP_Sync_Storage(); $WP_Sync_Storage->remove_updates_before_cursor( $room, $cursor ): bool;
- $room(string) (required)
- Room identifier.
- $cursor(int) (required)
- Remove updates with markers < this cursor.
Changelog
| Since 7.0.0 | Introduced. |
WP_Sync_Storage::remove_updates_before_cursor() WP Sync Storage::remove updates before cursor code WP 7.0
public function remove_updates_before_cursor( string $room, int $cursor ): bool;