Using short code in template file
-
Hi All,
I am creating a template file for the thank you page using do_shortcode and [accept_stripe_payment_checkout]. This all works fine for the standard output, however I need to retrieve the transaction ID as I need it to add some more data about the user to the database.
Is it possible to add the ‘transaction_id’ to the shortcode as a parameter instead of using {transaction_id} in the body text? Alternatively is there a way to retrieve an array of the data outputted from your shortcode method?
Thanks
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Using short code in template file’ is closed to new replies.