LLMS_Blocks_Visibility
LLMS_Blocks_Visibility class.
Description Description
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-visibility.php
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Add logic for logged_in and logged_out block visibility options. Adjusted priority of render_block filter to 20. |
1.0.0 | Introduced. |
Methods Methods
- __construct — Constructor.
- get_attributes — Retrieve visibility attributes.
- get_enrollment_count_by_type — Get the number of enrollments for a user by post type.
- get_post_ids_from_block_attributes — Parse post ids from block visibility in attributes.
- maybe_filter_block — Filter block output.
- should_filter_block — Determine whether or not a block's rendering should be modified by block-level visibility settings