Skip to content

cwp bricks post-types

shipped 1.0.0
cwp bricks post-types [flags]

cwp bricks post-types groups the commands below and takes no action of its own; run it alone and it prints its help.

FlagWhat it doesDefault
--with-agentwith —dry-run on a host with no shell: install and remove the PHP agent so the plan is realoff
SubcommandWhat it does
cwp bricks post-types listList the builder-enabled post types (read-only)
cwp bricks post-types enableOpen the Bricks builder for a post type
cwp bricks post-types disableStop the Bricks builder opening for a post type

What it does

cwp bricks post-types controls which post types the Bricks builder will open for: bricks_global_settings.postTypes.

This setting is the reason registering a custom post type is not enough. Deploy the site plugin and confirm the post type exists on both sides. The builder still will not open for it until it is in this list, and nothing anywhere says why. cwp doctor reports the gap per environment and points here.

It is database state, so it travels downward only: enabling it locally never reaches production. So these commands take an environment. Against a remote that is an upward write with the usual guards.

What it does not do

It does not register post types. Those belong in your site plugin, in code. This setting only decides whether Bricks will edit one that already exists.

It writes no other Bricks setting. The ability merges by key, so customCss and the rest of that option never round-trip.