legal_put_social_modules
Import social-media text modules to a WordPress site, inline or from a JSON file. Reapply networks immediately afterward to avoid removing an existing section.
Instructions
Import the social-media text modules, inline or as modules_file (websites/bin/legal-v4/social-media/library.json). Careful: importing while nothing is ticked removes an existing section; call legal_put_social with the current networks right after. Requires cvrt-legal 0.6.0+.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| modules | No | Modules object as social-media/library.py emits it | |
| modules_file | No | Absolute path to a local .json modules file |