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/hooks/public.php
<?php

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

/**
 * Add our custom filter to the attributes of WooCommerce products
 */
add_filter( 'wp_get_attachment_image_attributes', function( $attr ) {
    if ( get_post_type() !== 'product' ) {
        return $attr;
    }

    return woo_image_seo_get_image_attributes( $attr );
}, PHP_INT_MAX, 2 );