LLMS_Blocks_Page_Builders::add_filters()
Add filters to support various page builder plugins.
Contents
Return Return
(void)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-page-builders.php
public static function add_filters() {
if ( defined( 'FL_BUILDER_VERSION' ) ) {
add_filter( 'llms_blocks_is_post_migrated', array( __CLASS__, 'check_for_beaver' ), 15, 2 );
} elseif ( defined( 'ELEMENTOR_VERSION' ) ) {
add_filter( 'llms_blocks_is_post_migrated', array( __CLASS__, 'check_for_elementor' ), 15, 2 );
} elseif ( defined( 'ET_BUILDER_VERSION' ) ) {
add_filter( 'llms_blocks_is_classic_enabled_for_post', array( __CLASS__, 'check_for_divi_classic' ), 15, 2 );
add_filter( 'llms_blocks_is_post_migrated', array( __CLASS__, 'check_for_divi' ), 15, 2 );
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |