Class Sensei_PostTypes
Sensei Post Types Class
All functionality pertaining to the post types and taxonomies in Sensei.
public
|
|
public
|
#
load_posttype_objects( array $posttypes = array() )
load_posttype_objects function. Dynamically loads post type objects for meta boxes on backend |
public
|
#
setup_course_post_type( )
Setup the "course" post type, it's admin menu item and the appropriate labels and permissions. |
public
false|string
|
#
get_course_post_type_archive_slug( )
Figure out of the course post type has an archive and what it should be. |
public
boolean
|
#
has_old_shortcodes( string $content )
Check if given content has any of these old shortcodes: [newcourses][featuredcourses][freecourses][paidcourses] |
public
|
#
setup_lesson_post_type( )
Setup the "lesson" post type, it's admin menu item and the appropriate labels and permissions. |
public
|
#
setup_quiz_post_type( )
Setup the "quiz" post type, it's admin menu item and the appropriate labels and permissions. |
public
|
#
setup_question_post_type( )
Setup the "question" post type, it's admin menu item and the appropriate labels and permissions. |
public
|
#
setup_multiple_question_post_type( )
Setup the "multiple_question" post type, it's admin menu item and the appropriate labels and permissions. |
public
|
#
setup_sensei_message_post_type( )
Setup the "sensei_message" post type, it's admin menu item and the appropriate labels and permissions. |
public
|
#
setup_course_category_taxonomy( )
Setup the "course category" taxonomy, linked to the "course" post type. |
public
|
|
public
|
#
setup_question_type_taxonomy( )
Setup the "question type" taxonomy, linked to the "question" post type. |
public
|
#
setup_question_category_taxonomy( )
Setup the "question category" taxonomy, linked to the "question" post type. |
public
|
|
public
array
|
|
public
string
|
|
public
|
#
set_role_cap_defaults( array $post_types = array() )
Assigns the defaults for each user role capabilities. |
public
|
#
quiz_admin_bar_menu( WP_Admin_Bar $bar )
Adds a 'Edit Quiz' link to the admin bar when viewing a Quiz linked to a corresponding Lesson |
public
|
$token
|
|
public
|
$slider_labels
|
|
public
|
$role_caps
|
|
public
|
$course
|
|
public
|
$lesson
|
|
public
|
$question
|
|
public
|
$quiz
|