wp-includes/embed.php:720Filters the oEmbed response data to return an iframe embed code.
$dataarray$postWP_Post$widthint$heightintarrayfunction get_oembed_response_data_rich( $data, $post, $width, $height ) { $data['width'] = absint( $width ); $data['height'] = absint( $height ); $data['type'] = 'rich'; $data['html'] = get_post_embed_html( $width, $height, $post ); // Add post thumbnail to response if available. $thumbnail_id = false; if ( has_post_thumbnail( $post->ID ) ) { $thumbnail_id = get_post_thumbnail_id( $post->ID ); } if ( 'attachment' === get_post_type( $post ) ) { if ( wp_attachment_is_image( $post ) ) { $thumbnail_id = $post->ID; } elseif ( wp_attachment_is( 'video', $post ) ) { $thumbnail_id = get_post_thumbnail_id( $post ); $data['type'] = 'video'; } } if ( $thumbnail_id ) { $thumbnail_src = wp_get_attachment_image_src( $thumbnail_id, array( $width, 0 ) ); if ( is_array( $thumbnail_src ) ) { $data['thumbnail_url'] = $thumbnail_src[0]; $data['thumbnail_width'] = $thumbnail_src[1]; $data['thumbnail_height'] = $thumbnail_src[2]; } } return $data;}Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/embed.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.