Disciple_Tools_Notifications_Comments

Class Disciple_Tools_Notifications_Comments

package

Disciple_Tools\Notifications

Methods

Disciple_Tools_Notifications_Comments constructor.

__construct() 

Create notification activity

add_mention_notification(integer $mentioned_user_id, integer $source_user_id, integer $post_id, integer $comment_id, string $notification_action, string $notification_note,  $date_notified, string $field_key = "comments", string $field_value = "") 

Arguments

$mentioned_user_id

integer

$source_user_id

integer

$post_id

integer

$comment_id

integer

$notification_action

string

$notification_note

string

$date_notified

$field_key

string

$field_value

string

Checks for mention in text of comment.

check_for_mention( $comment_content) : boolean

If mention is found, returns true. If mention is not found, returns false.

Arguments

$comment_content

Response

boolean

Delete notification

delete_mention_notification(integer $mentioned_user_id, integer $post_id, integer $comment_id,  $date_notified) 
static

Arguments

$mentioned_user_id

integer

$post_id

integer

$comment_id

integer

$date_notified

Filter comment for notification

insert_notification_for_comment( $comment_id, null $comment = null) : array|\WP_Error
static

Arguments

$comment_id

$comment

null

Response

array|\WP_Error

Parse @mention to find user match

match_mention( $comment_content) : boolean|array
static

Arguments

$comment_content

Response

boolean|array