Skip to content

Commit 6313fed

Browse files
committed
Fix Elementor plugin check
1 parent 20a03bb commit 6313fed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Util_Environment.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@ public static function is_litespeed() {
374374
* @return bool
375375
*/
376376
public static function is_elementor() {
377+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
378+
377379
if ( is_plugin_active( 'Elementor\Plugin' ) ) {
378380
return true;
379381
} elseif ( is_plugin_active( 'elementor/elementor.php' ) ) {

0 commit comments

Comments
 (0)