Skip to content

cwp bricks post-types disable

shipped 1.0.0
cwp bricks post-types disable <slug> [env] [flags]

Acts on the local site unless an environment is named.

ArgumentWhat it isDefault
<slug>post type slug
[env]environment to write to (omit for the local site)
FlagWhat it doesDefault
--forceoverride the protected-environment refusaloff
--no-backupskip the remote backup taken before the writeon
--yesskip the confirmation promptoff

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.