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 );plugins/riff/src/class-tracks.phpView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.17.0 | Introduced. |