Support » Fixing WordPress » Theme update via API

  • kober777

    (@kober777)


    Hello,

    Is there any way to update themes via API? If so, what function does it?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Not by default. You’d need to create a custom route/endpoint for added functionality.

    Maybe I’m being overly pedantic, especially since I know what you mean, but the API doesn’t have “functions” in the usual sense, it has routes and endpoints. Of course the underlying PHP that runs the API has functions, but you don’t call these directly when using the API. FYI if you care, otherwise keep calling them functions, as long as who you’re talking to understands it’s all good.

    kober777

    (@kober777)

    Thank you for the reply, bcworkz. I have found what I was looking for – class-theme-upgrader.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.