below is my code.
All is okay but, in image alt tag, its showing $image_alt
, instead value of that variable. How can I print the value of the variable inside this function?
Kind regards.
$image_alt = $attributes["caption"];
$image_src= Str_replace('src="', 'alt=$image_alt src="',$image_src);