PluginProbe
Age Gate / 3.7.3
Age Gate v3.7.3
3.7.3 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 All 113 releases
age-gate / src / Integration / Elementor.php

Elementor.php in Age Gate 3.7.3, at src/Integration/Elementor.php

25 lines 594 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace AgeGate\Integration;
4
5 use AgeGate\Common\Settings;
6 use AgeGate\Common\Integration;
7
8 class Elementor extends Integration
9 {
10 public function exists()
11 {
12 return class_exists('\\Elementor\\Plugin');
13 }
14
15 public function init()
16 {
17 if ($this->exists()) {
18 if (\Elementor\Plugin::$instance->editor->is_edit_mode() || \Elementor\Plugin::$instance->preview->is_preview_mode()) {
19 Settings::getInstance()->set('isBuilder', true);
20 }
21 // add_filter('age_gate/restricted', '__return_false');
22 }
23 }
24 }
25