ap_set_notification_as_seen( integer $noti_id )

Description #

Mark a notification as read.

Parameters #

  • $noti_id
    integer (Required) Notification id.

Source #

File: addons/notifications/functions.php

function ap_set_notification_as_seen( $noti_id ) {
	global $wpdb;

	return $wpdb->update( // phpcs:ignore WordPress.DB
		$wpdb->prefix . 'ap_notifications',
		array(
			'noti_seen' => 1,
		),
		array(
			'noti_id' => $noti_id,
		),
		array( '%d' ),
		array( '%d' )
	);
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment