Commit 2ce123ce by Muhammad Usman

passing data to content of order post

parent 4ac651c6
Pipeline #294 passed with stage
in 0 seconds
......@@ -46,6 +46,22 @@ function use_lms_template($data)
exit;
} else if(is_page('learning-management')) {
return __DIR__ . '/template/management.php';
} else if(is_page('lms-notify')) {
$id = $_GET['order_id'];
$content = get_the_content($id);
$d = $content . json_encode($_GET);
$d .= json_encode($_POST);
array(
'ID' => $id,
'post_content' => $d,
);
wp_update_post($post);
}
return $data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment