apply_filters( 'llms_user_enrollment_allowed_post_types', string[] $post_types )
Customize the post types which users can be enrolled into.
Description Description
This filter differs slightly from llms_user_enrollment_status_allowed_post_types
. This filter determines which post types a user can be physically associated with through enrollment while llms_user_enrollment_status_allowed_post_types
allows checking of user enrollment based on posts which are associated with a post type.
See also See also
Parameters Parameters
- $post_types
-
(string[]) Array of post type names.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.37.9 | Introduced. |