wp.image_resize

/ WordPress / wp.image_resize

wp.image_resize shortcode is available from version 3.0.8.4 onwards.

Title : wp.image_resize
Purpose : To resize an local image and returing the resized image url. If the resized images exists it just return the url.
Syntax :
Input Parameters : image_url: URL of the image that needs to be resized.
width: width of the resized image.
height: height of the resized image.
crop: yes/no to crop the image while resizing.
Return Value : array(3)
[
“url” => string(77) “https://awxdocs/wp-content/uploads/2018/12/ami-88×88.jpg”
“width” => int(88)
“height” => int(88)
].
Example  :
Categories
Most Popular

Leave a Reply

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