# Hooks

The plugin provides several hooks to let you extend or modify its behavior.

## Actions

- [updated_tiny_postmeta](updated_tiny_postmeta.md) — Triggered when tinify meta data has been updated
- [tiny_image_after_compression](tiny_image_after_compression.md) — Triggered after successful optimization.

## Filters

- [tiny_replace_with_picture](tiny_replace_with_picture.md) — Enable or disable converting `<img>` tags to `<picture>` elements.
