Archive | /wp-includes/media.php RSS feed for this section

wp_get_attachment_image

Get an HTML img element representing an image attachmentWhile $size will accept an array, it is better to register a size with add_image_size() so that a cropped version is generated. It’s much more efficient than having to find the closest-sized image and then having the browser scale down the image.

3681

Continue reading

wp_expand_dimensions

Based on a supplied width/height example, return the biggest possible dimensions based on the max width/height.

3643

Continue reading

wp_embed_register_handler

Register an embed handler. This function should probably only be used for sites that do not support oEmbed.

3629

Continue reading