apply_filters( 'cp_media_image_widget_image_attributes', string $attributes, string $alt, string $aria-label, int $attachment_id, string $url )

Filter media image attributes within media image widget


Parameters

$attributes

The default attributes.

$alt

The default alt attribute.

$aria-label

The default aria-label attribute.

$attachment_id

The attachment ID.

$url

The image file URL.


Source

File: wp-includes/widgets/class-wp-widget-media-image.php

View on GitHub



Changelog

Changelog
Version Description
CP-2.5.0 Introduced. CP-2.5.0