Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Blocks_Visibility::get_enrollment_count_by_type( int $uid, string $type )
Get the number of enrollments for a user by post type.
Description Description
Parameters Parameters
- $uid
-
(Required) WP_User ID.
- $type
-
(Required) Post type.
Return Return
(int)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-visibility.php
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |