Property | Type | Description | |
---|---|---|---|
$component_action | |||
$component_callback | |||
$component_id | |||
$component_slug |
Method | Description | |
---|---|---|
__construct ( $args ) | ||
add_notification ( integer $post_id, integer $post_author_id, integer $user_id ) : integer | boolean | ||
delete_notification_by_item_id ( integer $post_author_id, integer $post_id ) | deletes existing media notification of a perticular user | |
mark_notification_unread ( integer $media_id ) | mark related notification as read once media is visit by user | |
notifier_setup_globals ( ) | register a new component for notifications |
public delete_notification_by_item_id ( integer $post_author_id, integer $post_id ) | ||
$post_author_id | integer | Author of post |
$post_id | integer | ID of a post to delete related notification |
public mark_notification_unread ( integer $media_id ) | ||
$media_id | integer | ID of media to mark notification as read |
public notifier_setup_globals ( ) |