Invoke action on a “post” in functions.php?


I have a button in admin that invokes a URL (GET) like this:


It creates an invoice when pressed.

I have access to all variable values in this URL, so I can recreate it. I also have a function in functions.php that gets invoked when an order is paid and complete.

My question is, how can I invoke that URL (or the internal wordpress action) inside my function in functions.php?

Sorry if it’s a basic question. My googling skills failed me.

Ramin Arabbagheri 3 years 2020-07-07T08:10:20-05:00 0 Answers 63 views 0

Leave an answer