Img::url

Posted on November 25, 2016

Get image URL.

Example usage

$src = Img::url();
// htt://somesite.com/someimage.jpg

Parameters

$attachment_id (int) (optional) attachment id. Default: 0.

$size (string) (optional) image size. Default: thumbnail.

Return Value

string

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *