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::should_filter_block( array $block )

Determine whether or not a block’s rendering should be modified by block-level visibility settings


Description Description

This method does not determine whether or not the block will be rendered, it only determines whether or not we should check if it should be rendered.

This method is primarily used to ensure that LifterLMS core dynamic blocks (pricing table, course syllabus, etc…) are always displayed to creators when editing content within the block editor. This parses data from a block-renderer WP Core API request.


Parameters Parameters

$block

(Required) Block data array.


Top ↑

Return Return

(boolean) If true, block filters should be checked, other wise they will be skipped.


Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/class-llms-blocks-visibility.php



Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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