WP_Sync_Storage::set_awareness_state
Sets awareness state for 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->set_awareness_state( $room, $awareness ): bool;
- $room(string) (required)
- Room identifier.
- $awareness(array) (required)
- .
Changelog
| Since 7.0.0 | Introduced. |
WP_Sync_Storage::set_awareness_state() WP Sync Storage::set awareness state code WP 7.0
public function set_awareness_state( string $room, array $awareness ): bool;