• Hi,

    Can you add or update code snippets using an API or another program? I know they are added as a CPT. Can you edit them through the regular WordPress REST API? If not, do you have any advice on how to update them from an external system?

Viewing 1 replies (of 1 total)
  • Plugin Support markomiljanovic

    (@markomiljanovic)

    Hi @polinet

    WPCode does not offer a built-in way to manage code snippets through the WordPress REST API.

    It is possible to enable REST API endpoints for the code snippets using a custom code snippet, which would allow you to add, update, or delete snippets via the API. However, you will not be able to trigger all the functionality because WPCode has a layer on top of the default CPT to manage snippet behavior.

    If you’re looking to securely manage or deploy code snippets across multiple sites, WPCode Pro offers the Private Cloud Snippets Library feature. This is specifically designed to help you safely deploy and sync snippets on connected sites, though it isn’t a direct replacement for REST API access.

Viewing 1 replies (of 1 total)

The topic ‘API or other way to add programmatically?’ is closed to new replies.