llms_get_enrollable_status_check_post_types()
Retrieve a list of post types that can be used to check a users enrollment status in an enroll-able post type.
Return Return
(string[]) A list of post type names.
Source Source
File: includes/llms.functions.core.php
function llms_get_enrollable_status_check_post_types() { /** * Customize the post types that can be used to check a user's enrollment status. * * This filter differs slightly from `llms_user_enrollment_allowed_post_types`. The difference is that * a user can be enrolled into a course but we can check their course enrollment status using the ID of a child (section or lesson). * * When adding a new post type for custom enrollment functionality the post type should be registered with * both of these filters. * * @since 3.37.9 * * @see llms_user_enrollment_allowed_post_types * * @param string[] $post_types List of allowed post types names. */ return apply_filters( 'llms_user_enrollment_status_allowed_post_types', array( 'course', 'section', 'lesson', 'llms_membership' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.4.1 | Introduced. |