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


Top ↑

Parameters Parameters

$post_types

(string[]) Array of post type names.


Top ↑

Source Source

File: includes/llms.functions.core.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
3.37.9 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.