Class Disciple_Tools_Notifications
| package |
Disciple_Tools\Notifications |
|---|
__construct()
| access |
public |
|---|---|
| since | 0.1.0 |
delete_by_post(array $args) : void
| since | 0.1.0 |
|---|
array
delete_notification(array $args) : void
| since | 0.1.0 |
|---|
array
get_new_notifications_count() : integer
integer
get_notifications(boolean $all, integer $page, integer $limit) : array
boolean
integer
integer
array
insert_notification(array $args) : void
| since | 0.1.0 |
|---|
array
insert_notification_for_assignment_declined(integer $user_who_declined, integer $new_assigned_to, integer $post_id)
integer
integer
integer
insert_notification_for_new_post( $post_type, $fields, $post_id)
insert_notification_for_post_update( $post_type, $fields, $old_fields, $fields_changed_keys)
insert_notification_for_share(integer $user_id, integer $post_id)
integer
integer
insert_notification_for_subassigned(integer $user_id, integer $post_id)
integer
integer
instance() : \Disciple_Tools_Notifications
mark_all_viewed( $user_id) : array
int
array
mark_unread( $notification_id) : array
array
mark_viewed( $notification_id) : array
array
process_new_notifications( $post_id)
send_notification_on_channels( $user_id, $notification, $notification_type, $already_sent = array())
_instance : object
| var | |
|---|---|
| access |
private |
| since |
object
Format comment replacing @mentions with a readable value
Arguments
$comment_content
Response
mixed