• hi, so I’m working on setting up a plugin preview using the WordPress playground blueprint.json.

    I’d like to activate a snippet in the build process. Is there any way to activate a snippet via wp-cli?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Unfortunately, we currently only have wp-cli support in the Pro plugin.

    I can see the argument to including it in the core version as well, especially if it’s commands like ‘activate’. I’m guessing that’s what you’d need to use it in blueprint.json?

    Thread Starter HelgaTheViking

    (@helgatheviking)

    Thanks Shea! I would need to add and activate a snippet, yes. Could I import it via .xml? Are snippets exportable? Worst case, I think I could wrap it up as it’s own standalone plugin and install it that way… just exploring this option first.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘insert code snippet via CLI or programmatically’ is closed to new replies.