Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/media.php | apply_filters | 1985 | /** * Filters the `decoding` attribute value to add to an image. Default `async`. * * Returning a falsey value will omit the attribute. * * @since 6.1.0 * * @param string|false|null $value The `decoding` attribute value. Returning a falsey value * will result in the attribute being omitted for the image. * Otherwise, it may be: 'async' (default), 'sync', or 'auto'. * @param string $image The HTML `img` tag to be filtered. * @param string $context Additional context about how the function was called * or where the img tag is. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string|false|null | $value | The `decoding` attribute value. Returning a falsey value |
string | $image | The HTML `img` tag to be filtered. |
string | $context | Additional context about how the function was called |