Summery Summery
Display the post thumbnail URL.
Syntax Syntax
Parameters Parameters
- $size
-
(Optional) Image size to use. Accepts any valid image size, or an array of width and height values in pixels (in that order). Default 'post-thumbnail'.
Default value: 'post-thumbnail'
Source Source
File: wp-includes/post-thumbnail-template.php
return wp_get_attachment_image_url( $post_thumbnail_id, $size ); } /** * Display the post thumbnail URL.
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |