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

Top ↑

Parameters Parameters


(string[]) List of allowed post types names.

Top ↑

Source Source

File: includes/llms.functions.core.php

View on GitHub

Top ↑

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.