apply_filters( 'llms_user_enrollment_status_allowed_post_types', string[] $post_types )
Customize the post types that can be used to check a user’s enrollment status.
Description Description
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.
See also See also
Parameters Parameters
- $post_types
-
(string[]) List of allowed post types names.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.37.9 | Introduced. |