cwp bricks post-types disable
shipped 1.0.0cwp bricks post-types disable <slug> [env] [flags]
Acts on the local site unless an environment is named.
| Argument | What it is | Default |
|---|---|---|
<slug> | post type slug | |
[env] | environment to write to (omit for the local site) |
| Flag | What it does | Default |
|---|---|---|
--force | override the protected-environment refusal | off |
--no-backup | skip the remote backup taken before the write | on |
--yes | skip the confirmation prompt | off |
Plus the shared flags --json, --verbose and --dry-run.
What it does
Removes one post type from the list the Bricks builder will open for.
Against a remote this is an upward write with the same guards as
enable: the protected-environment refusal, the confirmation and
the backup.
Example
cwp bricks post-types disable buch
cwp bricks post-types disable buch prod --force
What it does not do
It does not unregister the post type, delete any posts, or remove templates whose conditions name it. Those templates stay valid and simply stop being editable in the builder for that type.