0

Im trying to show the values in my admin panel to customers.

I run a wordpress website and would like to show these variables on my website, so a customer can view the status of their order. The API connection and all variables are already set up through a plugin. Everything works, but the plugin doesnt have the option to show these values on the website. I also have a code snippet plugin in which I would type the code. I just don’t know how I can give the variables to my website, so that I can use them in a html field for example.

  /** Get order status  */
    public function status($order_id)
    {
        return json_decode(
            $this->connect([
                'key' => $this->api_key,
                'action' => 'status',
                'order' => $order_id
            ])
        );
    }


$status = $api->status($order->order); # Return status, charge, remains, start count, currency

  • 1
    Does this answer your question? [How to parse out variables from a JSON var\_dump in a Wordpress Plugin](https://stackoverflow.com/questions/28033267/how-to-parse-out-variables-from-a-json-var-dump-in-a-wordpress-plugin) – Wahyu Kristianto Mar 17 '23 at 22:01

0 Answers0