WordPress / API Reference
snippet_create_js
Tool tool. Shorthand: create a JavaScript snippet — injected before </body> on frontend
This is a read-only tool: it returns snippet create js for your WordPress account. It changes nothing.
Ask Claude
You do not call this tool yourself. Ask for the outcome and the client picks the tool:
Snippet create js in my WordPress account for [title], [code].
It takes 2 required and 4 optional parameters.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Title |
code | string | Yes | Code |
location | string | No | Location |
active | boolean | No | Active |
tags | array | No | Tags |
description | string | No | Description |
Related WordPress tools
snippet_createsnippet_create_action_hooksnippet_create_csssnippet_create_filter_hooksnippet_create_htmlsnippet_create_php
Start free — 30 tool calls a month
No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.