# Static pages sync: Allowing specific private categories to be synced

**URL:** https://meta.discourse.org/t/static-pages-sync-allowing-specific-private-categories-to-be-synced/389676
**Category:** Development
**Created:** [November 26, 2025, 2:45am UTC](https://meta.discourse.org/t/static-pages-sync-allowing-specific-private-categories-to-be-synced/389676 "2025-11-26T02:45:41Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 26, 2025, 1:20pm UTC](https://meta.discourse.org/t/static-pages-sync-allowing-specific-private-categories-to-be-synced/389676/2 "2025-11-26T13:20:24Z")

</div>

> [@NateDhaliwal](#):
>
> Is there a way to modify site settings in a plugin? I’m 99% sure there isn’t, but I’d just like to confirm that.

Do you just want to change the value of site settings? Just do `SiteSetting.whatever='new value`. Or do you want to change something about them?

> [@NateDhaliwal](#):
>
> A possible use case I’m looking at is to the include a list of protected categories to a setting such that it’s easier for the admin to include/exclude them.

Don’t you just want to add a setting for that? Just add to `config/settings.yml`? something like

> <https://github.com/discourse/discourse-categories-suppressed/blob/main/config/settings.yml>

If that’s what you want, then using `rake plugin:create[plugin-name]` will create the settings file for you, complete with example.

Or maybe I don’t understand your question.

---

_[View the full topic](https://meta.discourse.org/t/static-pages-sync-allowing-specific-private-categories-to-be-synced/389676)._
