WordPress: move a page section
wp_carbon_fields_move_rowMove one section row of a Carbon Fields page to another position (e.g. the call to action to the top), or one item inside a section (a tab: pass parent). Previews the order before and after; confirm to move. The old order is backed up on the site and the page cache is cleared. Needs Bridge 1.7.0+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The new position | |
| 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 |