| 1 |
<?php |
| 2 |
/** |
| 3 |
* Themify Compatibility Code |
| 4 |
* |
| 5 |
* @package Themify |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Beaver Builder |
| 10 |
*/ |
| 11 |
class Themify_Compat_Beaver { |
| 12 |
|
| 13 |
static function init() { |
| 14 |
add_action( 'wp', [ __CLASS__, 'wp' ] ); |
| 15 |
} |
| 16 |
|
| 17 |
/** |
| 18 |
* Fix double content in Beaver Builder live edit screen |
| 19 |
*/ |
| 20 |
public static function wp() { |
| 21 |
if ( FLBuilderModel::is_builder_active() ) { |
| 22 |
remove_filter( 'style_loader_tag', [ 'Themify_Enqueue_Assets', 'style_header_tag' ], 10 ); |
| 23 |
} |
| 24 |
} |
| 25 |
} |