function learn_press_send_user_email_order($status, $order_id)
{
    return;
    $status = strtolower($status);
    if ('completed' == $status) {
        $order = new LP_Order($order_id);
        $mail_to = $order->get_user('email');
        $instructors = array();
        $course_title = '';
        $transaction_object = $order->get_items();
        $items = $transaction_object->products;
        $item = array_shift($items);
        $course = get_post($item['id']);
        $course_title = get_the_title($item['id']);
        $instructor = LP_User::get_user($course->post_author);
        $instructors[$instructor->ID] = $instructor->data->display_name;
        learn_press_send_mail($mail_to, 'enrolled_course', apply_filters('learn_press_vars_enrolled_course', array('user_name' => $order->get_user('display_name'), 'course_name' => $course_title, 'course_link' => get_permalink($item['id'])), $course, $instructor));
    }
}
/**
 * get confirm order URL
 *
 * @param int $order_id
 *
 * @return string
 */
function learn_press_get_order_confirm_url($order_id = 0)
{
    $url = '';
    if (($confirm_page_id = learn_press_get_page_id('taken_course_confirm')) && get_post($confirm_page_id)) {
        $url = get_permalink($confirm_page_id);
        if ($order_id) {
            $url = join(preg_match('!\\?!', $url) ? '&' : '?', array($url, "order_id={$order_id}"));
        }
    } else {
        $order = new LP_Order($order_id);
        if (($items = $order->get_items()) && !empty($items->products)) {
            $course = reset($items->products);
            $url = get_permalink($course['id']);
        } else {
            $url = get_site_url();
        }
    }
    return $url;
}