I have a post and payment page each posts contain a payment form
I want to know how I can retrieve the data to I can execute and publish where the post payment came from
on payment form submit
$return = array('success' => true, 'msg' => 'Payment Successful',
'current_post_id' => get_the_ID(),'payment_made' => true);
then payment page
function enable_post($current_post_id) {
if (payment_made =='true') {
/* Execute a Jquery that would affect the post */
/* Make post Publish instead of draft*/
} }