Hero

Wow your readers with a great introduction to your articles

Last modified: June 2, 2025

link Block name

t2/hero

link Hooks

link block-library/src/hero/block.php

Filter the image size used for the hero image.

apply_filters( 't2/block/hero/image/size', string $size, array $attributes )
Parameter Type Description
$size string Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order).
$attributes array Block attributes.

Filter the image used for the hero image.

apply_filters( 't2/block/hero/image', string $image_wrapper, array $attributes )
Parameter Type Description
$image_wrapper string The image wrapper.
$attributes array Block attributes.

link Properties (t2.json)

link

features

link Style properties