Developers

apply_filters( 'riff_unlock_url', string $url, array $track, int $attachment_id, int $post_id )

Filters where a locked track sends the visitor to unlock it: a sign-up, membership or checkout page.

Parameters

$urlstring
Address, or empty for none. Default empty.
$trackarray
Track.
$attachment_idint
Attachment ID, or 0.
$post_idint
The post the track appears in, or 0.

More Information

Usage

add_filter( 'riff_unlock_url', function ( $url, $track, $attachment_id, $post_id ) {
	return $url;
}, 10, 4 );

Source

$unlock          = (string) apply_filters( 'riff_unlock_url', '', $track, $attachment_id, $post_id );

Changelog

VersionDescription
4.17.0Introduced.