Filters whether a listener who hasn't chosen shares what they play with the site's other listeners. A site where listeners shouldn't see each other unless they ask, a class of children say, returns false.
Parameters
$sharebool- Whether they share. Default true.
$user_idint- The listener.
More Information
Usage
add_filter( 'riff_together_share', function ( $share, $user_id ) {
return $share;
}, 10, 2 );Source
return (bool) apply_filters( 'riff_together_share', true, $user_id );plugins/riff/features/listen/class-together.phpView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |