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
-
(string) The default attributes.
- $alt
-
(string) The default alt attribute.
- $aria-label
-
(string) The default aria-label attribute.
- $attachment_id
-
(int) The attachment ID.
- $url
-
(string) The image file URL.
Source
Changelog
| Version | Description |
|---|---|
| CP-2.5.0 | Introduced. CP-2.5.0 |