learndash_get_post_type_slug( $type )
Returns array of slugs used by LearnDash integration.
Description
Source
File: bp-integrations/learndash/bp-learndash-functions.php
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.