HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: /var/www/gosurya-id/wp-content/plugins/woo-image-seo/lib/functions/global.php
<?php

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

/**
 * Get plugin settings
 * If not found, saves the default settings first
 * @return array Array containing the plugin settings
 */
function woo_image_seo_get_settings() {
    $settings = get_option( WOO_IMAGE_SEO['option_name'] );

    if ( empty( $settings ) ) {
        $settings = WOO_IMAGE_SEO['default_settings'];

        update_option( 'woo_image_seo', $settings );
    }

    return json_decode( $settings, true );
}