WordPress / API Reference
snippet_create_shortcode
Tool tool. Create a PHP snippet that registers a WordPress shortcode
This is a read-only tool: it returns snippet create shortcode 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 shortcode in my WordPress account for [shortcode tag].
It takes 1 required and 4 optional parameters.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
shortcode_tag | string | Yes | Shortcode Tag |
output_html | string | No | Output Html |
php_callback | string | No | Php Callback |
title | string | No | Title |
active | boolean | No | Active |
Related WordPress tools
snippet_createsnippet_create_action_hooksnippet_create_csssnippet_create_filter_hooksnippet_create_htmlsnippet_create_js
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.