MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/www/wp-content/plugins/imageseo/src/Services/WordPressData.php
<?php

namespace ImageSeoWP\Services;

if (!defined('ABSPATH')) {
    exit;
}

class WordPressData
{
    public function getBlacklistPostTypesSocialMedia()
    {
        return apply_filters('imageseo_blacklist_post_types_social_media', [
            'attachment',
            'seopress_404',
            'elementor_library',
        ]);
    }

    public function getAllPostTypesSocialMedia()
    {
        $args = [
            'public' => true,
        ];

        $postTypes = get_post_types($args, 'objects');
        foreach ($this->getBlacklistPostTypesSocialMedia() as $value) {
            if (array_key_exists($value, $postTypes)) {
                unset($postTypes[$value]);
            }
        }

        return apply_filters('imageseo_get_all_post_types', $postTypes);
    }

    public function getPageBuilders()
    {
        $builders = apply_filters('imageseo_get_page_builders', [
            'beaver_builder'  => class_exists('FLBuilderModel'),
            'visual_composer' => defined('VCV_VERSION'),
            'divi'            => defined('ET_BUILDER_THEME'),
        ]);

        if (apply_filters('imageseo_authorize_page_builder', false)) {
            foreach ($builders as $key => $value) {
                $builders[$key] = false;
            }
        }

        return $builders;
    }
}