Filters where the Listen app sends someone who may upload to add music: the account menu's Add music, and Add your first album in an empty library.
Parameters
$urlstring- The address, or a view's slug. Default admin_url( 'media-new.php' ).
More Information
The slug of one of the app's views (riff_app_views) leads to that view, inside the app. At the default address the app opens its own file picker in place of following the link, and uploads what is chosen to the Media Library; at any other address the link is followed, and the empty library no longer names the Media Library.
Usage
add_filter( 'riff_add_music_url', function ( $url ) {
return $url;
} );Source
$url = (string) apply_filters( 'riff_add_music_url', admin_url( 'media-new.php' ) );plugins/riff/features/listen/class-browse.phpView on GitHub
Changelog
| Version | Description |
|---|---|
| 6.4.0 | Introduced. |