Set Custom Code
Create/update one site-wide Custom Code snippet — global CSS AND JS.
This is the only site-wide code layer WordPress renders without a theme edit, and one snippet carries both (<style> and <script> in the same body). It is what makes backdrop-filter, keyframe animation, sticky/scroll behaviour and third-party embeds deliverable without a manual wp-admin step.
name is the idempotency key — re-pushing updates in place rather than stacking duplicate snippets that all inject at once.
CHANGES EVERY PAGE, so it requires confirm=true, like the brand kit.
Read rendered in the response, not the status code: the plugin loopback- fetches the front page and reports whether the code is actually in the HTML.
Request
- Base URL: https://api.xeorank.com (the document declares no server; this is the origin it was published from)
- URL: https://api.xeorank.com/wordpress/sites/{site_id}/custom-code
- Auth: API key in header X-Agent-Key
Path parameters
Query parameters
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.