Developers

apply_filters( 'riff_together_share', bool $share, int $user_id )

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 );

Changelog

VersionDescription
5.8.0Introduced.