WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
66 | * Rectangular images are shown above the title while square images |
67 | * are shown next to the content. |
68 | * |
69 | * @since 4.4.0 |
70 | * @since 4.5.0 Added `$thumbnail_id` parameter. |
71 | * |
72 | * @param string $shape Thumbnail image shape. Either 'rectangular' or 'square'. |
73 | * @param int $thumbnail_id Attachment ID. |
74 | */ |
75 | $shape = apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id ); |
76 | } |
77 |
|
78 | if ( $thumbnail_id && 'rectangular' === $shape ) : ?> |
79 | <div class="wp-embed-featured-image rectangular"> |
80 | <a href="<?php the_permalink(); ?>" target="_top"> |
81 | <?php echo wp_get_attachment_image( $thumbnail_id, $image_size ); ?> |
82 | </a> |
83 | </div> |
84 | <?php endif; ?> |