# ultimate-post-kit/4.1.13/base/module-base.php

Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider &amp; Blog Layout Widgets, version 4.1.13. 22 lines.

- Page: https://pluginprobe.com/plugins/ultimate-post-kit/4.1.13/code/base/module-base.php
- Raw: https://pluginprobe.com/plugins/ultimate-post-kit/4.1.13/raw/base/module-base.php
- Modified: 2026-06-17T05:52:30+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/ultimate-post-kit/4.1.13/code/base/module-base.php#L10-L20`.

```php
<?php

namespace UltimatePostKit\Base;

use Elementor\Widget_Base;
use UltimatePostKit\Ultimate_Post_Kit_Loader;

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}

abstract class Module_Base extends Widget_Base {

    protected function upk_is_edit_mode(){

        if(Ultimate_Post_Kit_Loader::elementor()->preview->is_preview_mode() || Ultimate_Post_Kit_Loader::elementor()->editor->is_edit_mode() ){
            return true;
        }

        return false;
    }
}
```
