# ultimate-post-kit/4.5.5/includes/ultimate-post-kit-filters.php

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

- Page: https://pluginprobe.com/plugins/ultimate-post-kit/4.5.5/code/includes/ultimate-post-kit-filters.php
- Raw: https://pluginprobe.com/plugins/ultimate-post-kit/4.5.5/raw/includes/ultimate-post-kit-filters.php
- Modified: 2026-09-24T07:02:10+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.5.5/code/includes/ultimate-post-kit-filters.php#L10-L20`.

```php
<?php

/**
 * Prime Slider widget filters
 * @since 3.0.0
 */

use UltimatePostKit\Admin\ModuleService;


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

// Settings Filters
if (!function_exists('upk_is_dashboard_enabled')) {
    // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound -- established function name relied on across the plugin family / feedback SDK; renaming would break integration.
    function upk_is_dashboard_enabled() {
        return apply_filters('ultimatepostkit/settings/dashboard', true);
    }
}

if (!function_exists('ultimate_post_kit_is_widget_enabled')) {
    function ultimate_post_kit_is_widget_enabled($widget_id, $options = []) {

        if(!$options){
            $options = get_option('ultimate_post_kit_active_modules', []);
        }

        if( ModuleService::is_module_active($widget_id, $options)){
            $widget_id = str_replace('-','_', $widget_id);
            return apply_filters("ultimatepostkit/widget/{$widget_id}", true);
        }
    }
}

if (!function_exists('ultimate_post_kit_is_extend_enabled')) {
    function ultimate_post_kit_is_extend_enabled($widget_id, $options = []) {

        if(!$options){
            $options = get_option('ultimate_post_kit_elementor_extend', []);
        }

        if( ModuleService::is_module_active($widget_id, $options)){
            $widget_id = str_replace('-','_', $widget_id);
            return apply_filters("ultimatepostkit/extend/{$widget_id}", true);
        }
    }
}

// if (!function_exists('ultimate_post_kit_is_third_party_enabled')) {
//     function ultimate_post_kit_is_third_party_enabled($widget_id, $options = []) {

//         if(!$options){
//             $options = get_option('ultimate_post_kit_third_party_widget', []);
//         }

//         if( ModuleService::is_module_active($widget_id, $options)){
//             $widget_id = str_replace('-','_', $widget_id);
//             return apply_filters("ultimatepostkit/widget/{$widget_id}", true);
//         }
//     }
// }

// if (!function_exists('ultimate_post_kit_is_asset_optimization_enabled')) {
//     function ultimate_post_kit_is_asset_optimization_enabled() {
//         $asset_manager = ultimate_post_kit_option('asset-manager', 'ultimate_post_kit_other_settings', 'off');
//         if( $asset_manager == 'on'){
//             return apply_filters("ultimatepostkit/optimization/asset_manager", true);
//         }
//     }
// }



```
