Class Sensei_Shortcode_User_Courses
This class is loaded int WP by the shortcode loader class.
Renders the [sensei_user_courses] shortcode to all courses the current user is taking
Shortcode parameters: number - how many courses you'd like to show orderby - the same as the wordpress orderby query parameter order - ASC | DESC status - complete | active if none specified it will default to all
If all courses for a given user is shown, there will also be a toggle link between active and complete. Please note that the number you specify will be respected.
- Sensei_Shortcode_User_Courses implements Sensei_Shortcode_Interface
Author: Automattic
Since: 1.9.0
Class: Sensei_Shortcode_User_Courses
Located at includes/shortcodes/class-sensei-shortcode-user-courses.php
public
mixed
|
|
protected
|
|
public
|
#
completed_no_course_message_output( )
Output the message that tells the user they have no completed courses. |
public
|
#
active_no_course_message_output( )
Output the message that tells the user they have no active courses. |
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
#
course_status_class_tagging( array $classes, WP_Post $course )
Add a the user status class for the given course. |
public
|
|
public
|
protected
WP_Query
|
$query
to help setup the query needed by the render method. |
|
protected
string
|
$number
number of items to show on the current page Default: -1. |
|
protected
string
|
$orderby
ordery by course field Default: date |
|
protected
string
|
$order
ASC or DESC Default: 'DESC' |
|
protected
|
$status
can be completed or active. If none is specified all will be shown |