Filters the sections of the About panel, Riff's own included: track, the cover, the title and the artist and album, and credits, what the file's tags say about who made it.
Parameters
$sectionsarray[]- By id (lowercase letters, digits and dashes), each with a
label, its heading, or empty for none; anorder, lowest first; and an optionalrender, a callable given the id that returns the body's markup as the page is drawn.
More Information
Each section is drawn into the panel, hidden, as [data-riff-about="<id>"], with its heading and an empty .riff-about-body. Its script fills the body and shows the section on the riff.view action, when its id is about; a section with nothing to say for the track playing stays hidden.
Usage
add_filter( 'riff_about_sections', function ( $sections ) {
return $sections;
} );Source
$sections = apply_filters( 'riff_about_sections', $own );plugins/riff/src/class-about.phpView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |