bricks_update_scripts
Update per-page scripts for a WordPress page by injecting HTML, CSS, and JavaScript before the closing body tag. Use this tool to add custom scripts or styles to individual pages.
Instructions
Update per-page scripts for a WordPress page. Scripts are output in wp_footer. Include , , and tags as needed — all are output together before . IMPORTANT: WordPress strips backslashes — use String.fromCharCode(10) instead of "\n" in JavaScript strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | WordPress page/post ID | |
| scripts | Yes | HTML/JS/CSS to inject before </body>. Include <script>, <style>, and <link> tags as needed. |