preview()

Description

Returns a preview form (image,audio,video,file) of the specified field (By given metaKey).

Parameters

 

  • $url: Field value eg:http://example.com/wp-upload/uploads/audio.mp3 . (required)
  • $type: Specific Type (image,audio,video,file) .(required)
  • $attr:If your url is image then you can make a thumbnail preview thumb=>true, BY Defaults it is true(not required)

 

Usage

Out Put