Filters the tabs beside Now Playing. Add a tab by slug with a label; its panel is [data-riff-panel="<slug>"], empty until your script fills it. Up next, queue, always comes first and cannot be removed.
Parameters
$tabsarray[]- Tabs keyed by slug, each with a label.
More Information
Usage
add_filter( 'riff_now_playing_tabs', function ( $tabs ) {
return $tabs;
} );Source
$filtered = (array) apply_filters( 'riff_now_playing_tabs', $tabs );plugins/riff/src/class-player.phpView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.17.0 | Introduced. |