Creating a shortcode with a variable (Woocommerce)?

I’m new to PHP. I want to create a shortcode that outputs a user’s order number, but I’m having trouble.

All I know is that the order ID variable is “$order->get_id();”

Read more here:: Creating a shortcode with a variable (Woocommerce)?

Leave a Reply

Your email address will not be published. Required fields are marked *