legal_link_page
Links a legal document such as Impressum or Datenschutz to a WordPress page, writes rendered text into post_content, and unlinks with page_id 0.
Instructions
Link a legal document to its WordPress page (post type page only; posts and products are refused). The rendered document is written into the page's post_content at once (mirrored: true, false while the document is empty) and on every later save, so a deactivated plugin still leaves the text on the page. Linking impressum/datenschutz also fills the consent banner's imprint/privacy link if that is still unset (banner_linked). page_id 0 unlinks. Requires cvrt-legal 0.4.2+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document type | |
| site | Yes | Site id (see list_sites) | |
| page_id | Yes | Page id to link, 0 to unlink |