twenty_twenty_one_attachment_size

twenty_twenty_one_attachment_size

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.3.2

apply_filters('twenty_twenty_one_attachment_size') is found 1 times:

  • /wp-content/themes/twentytwentyone/image.php line 31
    				 * @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; ?>