Skip to content

Instantly share code, notes, and snippets.

@Pross
Created November 20, 2023 19:50
Show Gist options
  • Save Pross/cf221eba385b3fcd1c2f428aceea37dc to your computer and use it in GitHub Desktop.
Save Pross/cf221eba385b3fcd1c2f428aceea37dc to your computer and use it in GitHub Desktop.
diff --git a/common/helpers.php b/common/helpers.php
index 6fe1ca4..fc436fd 100644
--- a/common/helpers.php
+++ b/common/helpers.php
@@ -16,8 +16,12 @@ if ( !class_exists( 'MeowCommon_Helpers' ) ) {
return isset( $_GET['cs-render'] ) && $_GET['cs-render'] === '1';
}
+ static function is_beaver_builder() {
+ return isset( $_GET['fl_builder'] );
+ }
+
static function is_pagebuilder_request() {
- return self::is_divi_builder() || self::is_cornerstone_builder();
+ return self::is_divi_builder() || self::is_cornerstone_builder() || self::is_beaver_builder();
}
static function is_asynchronous_request() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment