diff --git a/modules/ppcp-settings/src/Data/SettingsModel.php b/modules/ppcp-settings/src/Data/SettingsModel.php index 1ce1d162e..28761a3ae 100644 --- a/modules/ppcp-settings/src/Data/SettingsModel.php +++ b/modules/ppcp-settings/src/Data/SettingsModel.php @@ -406,4 +406,22 @@ class SettingsModel extends AbstractDataModel { $cards ); } + + /** + * Gets the Stay Updated setting. + * + * @return bool True if Stay Updated is enabled, false otherwise. + */ + public function get_stay_updated() : bool { + return $this->data['stay_updated']; + } + + /** + * Sets the Stay Updated setting. + * + * @param bool $save Whether to save the Stay Updated. + */ + public function set_stay_updated( bool $save ) : void { + $this->data['stay_updated'] = $this->sanitizer->sanitize_bool( $save ); + } }