ap_set_notifications_as_seen( integer $user_id )
Description #
Set user’s notifications as seen.
Parameters #
- $user_idinteger (Required) User id.
Source #
File: addons/notifications/functions.php
function ap_set_notifications_as_seen( $user_id ) { global $wpdb; return $wpdb->update( // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->prefix . 'ap_notifications', array( 'noti_seen' => 1, ), array( 'noti_user_id' => $user_id, ), array( '%d' ), array( '%d' ) ); }
Expand full source code Collapse full source code View on GitHub: addons/notifications/functions.php:248
Add your comment