ap_set_notification_as_seen( integer $noti_id )
Description #
Mark a notification as read.
Parameters #
- $noti_idinteger (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' ) ); }
Expand full source code Collapse full source code View on GitHub: addons/notifications/functions.php:227
Add your comment