WordPress: remove a page section
wp_carbon_fields_remove_rowRemove one section row from a Carbon Fields page, or one item inside a section (a tab such as "Tiny Home Construction" at 1:4: parent 1, index 4). Previews the sections before and after; confirm to remove. The removed row is backed up on the site. Needs Bridge 1.7.0+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| field | Yes | The complex field, e.g. _crb_page_builder_sections (from wp_carbon_fields_get) | |
| index | Yes | The row, from wp_carbon_fields_get. For an item inside a section (a field index like 1:4, e.g. one tab), the second number | |
| nested | No | Only when that section has several nested lists: which one (e.g. tabs); the refusal names them | |
| parent | No | For an item inside a section (index 1:4): the section row, the first number. Leave out for a whole section. Needs Bridge 1.7.1+ | |
| confirm | No | Leave false to preview: nothing changes and the preview shows exactly what would happen. Set true only after the user has agreed to this exact change. | |
| post_id | Yes |