Playlist track

This block is experimental and may change or be removed without notice.

Playlist track.

  • Name: core/playlist-track
  • Category: media
  • API Version: 3
  • Block Type: Dynamic (server-rendered)
  • Keywords: music, sound

Block Relationships

Parent blocks (direct):
core/playlist

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
blob string Role: local
id number
src string
type string "audio"
album string
artist string
image string
imageAlt string
length string
title string

Supports

Defined via the supports property in block.json.

Context

Defined via the usesContext and providesContext properties in block.json.

Uses context:

  • showArtists
  • showImages

Block Markup

This is a dynamic block. It is rendered on the server and does not save HTML in post content.

In post content, it is stored as a block comment:

<!-- wp:playlist-track {"type":"audio"} /-->

Source