cwp bricks post-types disable
shipped 1.0.0cwp bricks post-types disable <slug> [env] [flags]
Acts on the local site. Name an environment to act there instead.
| Argument | What it is | Default |
|---|---|---|
<slug> | post type slug | |
[env] | environment to write to (default: default_environment in cwp.yml) |
| 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 |
--with-agent | with —dry-run on a host with no shell: install and remove the PHP agent so the plan is real | off |
Plus the shared flags --json, -v, --verbose, -q, --quiet 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 stop being editable in the builder for that type.