Invoke action on a “post” in functions.php?
Question
I have a button in admin that invokes a URL (GET) like this:
/wp-admin/post.php?post=1545559&action=edit&bewpi_action=create&nonce=dbc6e6c4frd
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.
0
functions
3 years
2020-07-07T08:10:20-05:00
2020-07-07T08:10:20-05:00 0 Answers
63 views
0
Leave an answer