API Reference

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

ParameterTypeRequiredDescription
shortcode_tagstringYesShortcode Tag
output_htmlstringNoOutput Html
php_callbackstringNoPhp Callback
titlestringNoTitle
activebooleanNoActive

Related WordPress tools

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.