WordPress: copy a page section
wp_carbon_fields_copy_rowCopy one section row of a Carbon Fields page to the end of the page, or one item inside a section to the end of that section (pass parent) (to then change its text with wp_replace_in_post, e.g. a new tab or service block). Previews first; confirm to copy. 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 |