Filter the default image attachment size.
$image_sizestringwp-content/themes/twentytwentyone/image.php:31file scope * Filter the default image attachment size. * * @since Twenty Twenty-One 1.0 * * @param string $image_size Image size. Default 'full'. */ $image_size = apply_filters( 'twenty_twenty_one_attachment_size', 'full' ); echo wp_get_attachment_image( get_the_ID(), $image_size ); ?> <?php if ( wp_get_attachment_caption() ) : ?> <figcaption class="wp-caption-text"><?php echo wp_kses_post( wp_get_attachment_caption() ); ?></figcaption> <?php endif; ?>Introduced in Twenty Twenty-One 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.