• ruanolucas

    (@ruanolucas)


    I generated a WordPress plugin that uses Api rest Woocommerce to send products and orders data to external marketing platform. Currently, it is in my development environment.

    This plugin connects to an external marketing platform. But, I try to change the person who installs my custom plugin does not need to have to go to the WooCommerce plugin settings to enable the API REST and get a consumer key and secret for put on my custom plugin (this must be resolved in the background process for the common person. Otherwise, there are many steps).
    I want to solve it automatically by code when the person installs/activate my custom plugin. Can someone tell me how from the code of my plugin I can activate the REST API Woocommerce and get a new consumer key and secret for use in my custom plugin?
    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter ruanolucas

    (@ruanolucas)

    I generated a WordPress plugin that uses Api rest Woocommerce to send products and orders to an external marketing platform. Currently, it is in my development environment.

    I try to prevent the person from having to manually enable the WC REST API and generate an application key. Because, there are people who do not understand much of this.

    It can be done in my custom plugin automatically…:
    – Check if Api Rest Woocommerce is enabled.
    – Create a new credentials (key and secret) application.

Viewing 1 replies (of 1 total)
  • The topic ‘API REST Woocommerce’ is closed to new replies.