1. You can add the vibe carousel widget to your student sidebar .
refer :
http://prntscr.com/9sesf4
2. that would not be possible as of now .Fro that you may need to create a whole new widget .
3. That is also not possible as of now in wplms .
Ok
Can you tell how can I get post ids of all purchased courses by a particular student?
Check out this function :
will return post ids and takes user id and order status as prameter .
/**
* Returns all the orders made by the user
* @param int $user_id
* @param string $status (completed|processing|canceled|on-hold etc)
* @return array of order ids
*/
function wplms_get_all_user_orders($user_id, $status = 'completed') {
if(!$user_id) {
return false;
}
$args = array(
'numberposts' => -1,
'meta_key' => '_customer_user',
'meta_value' => $user_id,
'post_type' => 'shop_order',
'post_status' => 'publish',
'tax_query' => array(
array(
'taxonomy' => 'shop_order_status',
'field' => 'slug',
'terms' => $status
)
)
);
$posts = get_posts($args);
//get the post ids as order ids
return wp_list_pluck($posts, 'ID');
}