Skip to content
Corex

NotificationPreferenceStore

Corex\Notifications\NotificationPreferenceStore · interface · Core layer

Per-user notification preference persistence (spec 072 FR-020). Preferences are small, per-user, and WordPress-native, so the adapter stores them in user meta rather than a custom table.

forUser(int $userId): NotificationPreference

Section titled “forUser(int $userId): NotificationPreference”

save(int $userId, NotificationPreference $preference): void

Section titled “save(int $userId, NotificationPreference $preference): void”