ap_is_user_subscriber( string $event, integer $ref_id, integer $user_id = false )
Description #
Check if user is subscribed to a reference event.
Parameters #
- $eventstring (Required) Event type.
- $ref_idinteger (Required) Reference id.
- $user_idinteger (Optional) User ID. Default value: false
Source #
File: includes/subscribers.php
function ap_is_user_subscriber( $event, $ref_id, $user_id = false ) { if ( false === $user_id ) { $user_id = get_current_user_id(); } $exists = ap_get_subscriber( $user_id, $event, $ref_id ); if ( $exists ) { return true; } return false; }
Expand full source code Collapse full source code View on GitHub: includes/subscribers.php:331
Add your comment