embed_thumbnail_image_shape

embed_thumbnail_image_shape

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('embed_thumbnail_image_shape') is found 1 times:

  • /wp-includes/theme-compat/embed-content.php line 75
    			 *
    			 * @param string $shape        Thumbnail image shape. Either 'rectangular' or 'square'.
    			 * @param int    $thumbnail_id Attachment ID.
    			 */
    			$shape = apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id );
    		}
    
    		if ( $thumbnail_id && 'rectangular' === $shape ) :
    			?>
    			<div class="wp-embed-featured-image rectangular">
    				<a href="<?php the_permalink(); ?>" target="_top">