# age-gate/3.7.3/src/Integration/Elementor.php

Age Gate, version 3.7.3. 25 lines.

- Page: https://pluginprobe.com/plugins/age-gate/3.7.3/code/src/Integration/Elementor.php
- Raw: https://pluginprobe.com/plugins/age-gate/3.7.3/raw/src/Integration/Elementor.php
- Modified: 2024-10-23T07:59:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/age-gate/3.7.3/code/src/Integration/Elementor.php#L10-L20`.

```php
<?php

namespace AgeGate\Integration;

use AgeGate\Common\Settings;
use AgeGate\Common\Integration;

class Elementor extends Integration
{
    public function exists()
    {
        return class_exists('\\Elementor\\Plugin');
    }

    public function init()
    {
        if ($this->exists()) {
            if (\Elementor\Plugin::$instance->editor->is_edit_mode() || \Elementor\Plugin::$instance->preview->is_preview_mode()) {
                Settings::getInstance()->set('isBuilder', true);
            }
            // add_filter('age_gate/restricted', '__return_false');
        }
    }
}

```
