debug-bar
2 months ago
3rd-party.php
1 week ago
activitypub.php
1 week ago
amp.php
6 months ago
atomic.php
6 months ago
bbpress.php
6 months ago
beaverbuilder.php
6 months ago
bitly.php
6 months ago
buddypress.php
6 months ago
class-domain-mapping.php
6 months ago
class-jetpack-bbpress-rest-api.php
2 years ago
class.jetpack-amp-support.php
3 months ago
creative-mail.php
6 months ago
debug-bar.php
6 months ago
jetpack-backup.php
6 months ago
jetpack-boost.php
6 months ago
qtranslate-x.php
6 months ago
vaultpress.php
6 months ago
web-stories.php
6 months ago
woocommerce-services.php
6 months ago
woocommerce.php
6 months ago
wpcom-reader.php
6 months ago
wpml.php
6 months ago
beaverbuilder.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Beaverbuilder Compatibility. |
| 4 | * |
| 5 | * @package automattic/jetpack |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\Jetpack\Third_Party; |
| 9 | |
| 10 | use Automattic\Jetpack\Status\Host; |
| 11 | |
| 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 13 | exit( 0 ); |
| 14 | } |
| 15 | |
| 16 | add_action( 'init', __NAMESPACE__ . '\beaverbuilder_refresh' ); |
| 17 | |
| 18 | /** |
| 19 | * If masterbar module is active force BeaverBuilder to refresh when publishing a layout. |
| 20 | */ |
| 21 | function beaverbuilder_refresh() { |
| 22 | if ( ( new Host() )->is_woa_site() ) { |
| 23 | add_filter( 'fl_builder_should_refresh_on_publish', '__return_true' ); |
| 24 | } |
| 25 | } |
| 26 |