Namespace: video

wp.media. video

Shortcode modeling for video. `edit()` prepares the shortcode for the media modal. `shortcode()` builds the new shortcode after update.
Since:
  • 4.2.0
Source:

Methods


<static> edit(data)

Instantiates a new media object with the next matching shortcode.
Parameters:
Name Type Description
data string The text to apply the shortcode on.
Since:
  • 4.2.0
Source:
Returns:
The media object.
Type
wp.media

<static> shortcode(model)

Generates an video shortcode.
Parameters:
Name Type Description
model Array Array with attributes for the shortcode.
Since:
  • 4.2.0
Source:
Returns:
The video shortcode object.
Type
wp.shortcode