WP_Sync_Storage::add_update
Adds a sync update to a given room.
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->add_update( $room, $update ): bool;
- $room(string) (required)
- Room identifier.
- $update(mixed) (required)
- Serializable sync update, opaque to the storage implementation.
Changelog
| Since 7.0.0 | Introduced. |
WP_Sync_Storage::add_update() WP Sync Storage::add update code WP 7.0
public function add_update( string $room, $update ): bool;