learndash_get_post_type_slug( $type )
Returns array of slugs used by LearnDash integration.
Description
Source
File: bp-integrations/learndash/bp-learndash-functions.php
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | function learndash_get_post_type_slug( $type ) { $postTypes = [ 'course' => 'sfwd-courses' , 'lesson' => 'sfwd-lessons' , 'topic' => 'sfwd-topic' , 'quiz' => 'sfwd-quiz' , 'question' => 'sfwd-question' , 'transactions' => 'sfwd-transactions' , 'group' => 'groups' , 'assignment' => 'sfwd-assignment' , 'essays' => 'sfwd-essays' , 'certificates' => 'sfwd-certificates' , ]; return $postTypes [ $type ]; } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.