Shortcode modeling for audio.
`edit()` prepares the shortcode for the media modal.
`shortcode()` builds the new shortcode after an 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 audio shortcode.
Parameters:
Name Type Description model
Array Array with attributes for the shortcode. - Since:
-
- 4.2.0
- Source:
Returns:
The audio shortcode object.- Type
- wp.shortcode