Changeset 52028
- Timestamp:
- 11/07/2021 08:36:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-thumbnail-template.php
r52027 r52028 58 58 } 59 59 60 return (int) get_post_meta( $post->ID, '_thumbnail_id', true ); 60 $thumbnail_id = (int) get_post_meta( $post->ID, '_thumbnail_id', true ); 61 62 /** 63 * Filters post thumbnail ID. 64 * 65 * @since 5.9.0 66 * 67 * @param int|false $thumbnail_id Post thumbnail ID or false if the post does not exist. 68 * @param int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`. 69 */ 70 return (int) apply_filters( 'post_thumbnail_id', $thumbnail_id, $post ); 61 71 } 62 72
Note: See TracChangeset
for help on using the changeset viewer.