How can the user place a custom text string as a placeholder for a plugin

ex: like a user adds {{my-new-plugin}} somewhere in their post, the plugin will read it and add arbitrary text.

I just need help finding the name for this. I can’t find this the proper words to put in a search engine.

Solutions Collecting From Web of "How can the user place a custom text string as a placeholder for a plugin"

I believe what you are looking or are short codes.

Check the codex for more details on them:

  • Shortcode API
  • Builtin Short Codes and Overview

Hopefully that gets you going.

It is:

wp.template( templateName )

I can’t find it in Codex and could not explain it better, so here’s a link.