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/public_html/wp-content/plugins/imageseo/src/Helpers/Bulk/AltSpecification.php
<?php

namespace ImageSeoWP\Helpers\Bulk;

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

class AltSpecification
{
    const ALL = 'ALL';
    const WOO_PRODUCT_IMAGE = 'WOO_PRODUCT_IMAGE';
    const NEXTGEN_GALLERY = 'NEXTGEN_GALLERY';
    const FEATURED_IMAGE = 'FEATURED_IMAGE';

    const FILL_ALL = 'FILL_ALL';
    const FILL_ONLY_EMPTY = 'FILL_ONLY_EMPTY';

    public static function getMetas()
    {
        $metas[] = [
            'id'          => self::ALL,
            'label'       => __('Only Media Library images', 'imageseo'),
            'conditions'  => [],
        ];

        $metas[] = [
            'id'          => self::FEATURED_IMAGE,
            'label'       => __('Only featured images', 'imageseo'),
            'conditions'  => [],
        ];

        if (
            is_plugin_active('woocommerce/woocommerce.php')
        ) {
            $metas[] = [
                'id'          => self::WOO_PRODUCT_IMAGE,
                'label'       => __('Only WooCommerce product images', 'imageseo'),
                'conditions'  => [],
            ];
        }

        if (is_plugin_active('nextgen-gallery/nggallery.php')) {
            $metas[] = [
                'id'          => self::NEXTGEN_GALLERY,
                'label'       => __('Only NextGen Gallery', 'imageseo'),
                'conditions'  => [],
            ];
        }

        return apply_filters('imageseo_bulk_alt_specification', $metas);
    }

    public static function getFillType()
    {
        return [
            [
                'id'          => self::FILL_ALL,
                'label'       => __('All Alt Texts', 'imageseo'),
            ],
            [
                'id'          => self::FILL_ONLY_EMPTY,
                'label'       => __('Only missing alt texts', 'imageseo'),
            ],
        ];
    }
}