WordPress как на ладони
wordpress jino
фильтр не описан

wp_get_attachment_image_attributes хук-фильтр . WP 2.8.0

Filters the list of attachment image attributes.

Использование

add_filter( 'wp_get_attachment_image_attributes', 'filter_function_name_4956', 10, 3 );
function filter_function_name_4956( $attr, $attachment, $size ){
	// filter...

	return $attr;
}
$attr(array)
Attributes for the image markup.
$attachment(WP_Post)
Image attachment post.
$size(string|array)
Requested size. Image size or array of width and height values (in that order).
Default: 'thumbnail'

Связи хука

Используется в: wp_get_attachment_image()

Кусок кода с хуком

Фрагмент из: wp-includes/media.php WP 4.9
...
					}
				}
			}
		}

		/**
		 * Filters the list of attachment image attributes.
		 *
		 * @since 2.8.0
		 *
		 * @param array        $attr       Attributes for the image markup.
		 * @param WP_Post      $attachment Image attachment post.
		 * @param string|array $size       Requested size. Image size or array of width and height values
		 *                                 (in that order). Default 'thumbnail'.
		 */
		$attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size );
		$attr = array_map( 'esc_attr', $attr );
		$html = rtrim("<img $hwstring");
		foreach ( $attr as $name => $value ) {
			$html .= " $name=" . '"' . $value . '"';
		}
		$html .= ' />';
	}

	return $html;
}

/**
 * Get the URL of an image attachment.
 *
 * @since 4.4.0
...