P粉3948122772023-09-03 21:24:11
WordPress plugins rely on a large amount of WordPress core code to run. Getting them to stand on their own requires a lot of work, and if you can get them to work, your results will be fragile. (Fragile === Anything can break it, including core or plugin updates.)
WordPress’s REST API is the best way to access WordPress (including plugin functionality) from other web servers. WooCommerce also supports REST, documented here. It provides an API Key subsystem that allows secure authentication.
Write a Add one or two REST endpoints for special purposes. But one of the existing WooCommerce REST endpoints may serve your purpose. (You didn't tell us what it was, so it's difficult to provide more detailed advice.)