Method |
Description |
|
fit_image_url ( string $src, $width, $height ) : string |
Takes an image URL and pixel dimensions then returns a URL for the
resized and croped image. |
|
from_attachment ( $post_id, $width = 200, $height = 200 ) |
Get attachment images for a specified post and return them. Also make sure
their dimensions are at or above a required minimum. |
|
from_blavatar ( integer $post_id, integer $size = 96 ) : Array |
|
|
from_gallery ( $post_id ) |
If a gallery is detected, then get all the images from it. |
|
from_gravatar ( integer $post_id, integer $size = 96, string $default = false ) : Array |
|
|
from_html ( mixed $html_or_id ) : Array |
Very raw -- just parse the HTML and pull out any/all img tags and return their src |
|
from_slideshow ( $post_id, $width = 200, $height = 200 ) |
If a slideshow is embedded within a post, then parse out the images involved and return them |
|
from_thumbnail ( integer $post_id, $width = 200, $height = 200 ) : Array |
Check if a Featured Image is set for this post, and return it in a similar
format to the other images?_from_*() methods. |
|
get_image ( integer $post_id, array $args = [] ) : Array |
Run through the different methods that we have available to try to find a single good
display image for this post. |
|
get_images ( integer $post_id, array $args = [] ) : Array |
Get an array containing a collection of possible images for this post, stopping once we hit a method
that returns something useful. |
|