bp_notifications_add_notification

bp_notifications_add_notification() is used to insert new notifications into the database table $wpdb->bp_notifications. Notifications were refactored to be a separate component for BP 1.9 Usage $notification_id = bp_notifications_add_notification( $args ); @return int|bool ID of the newly created notification on success, false on failure. Default args array( ‘user_id’ => 0, ‘item_id’ => 0, ‘secondary_item_id’ => 0, ‘component_name’ … Continue reading bp_notifications_add_notification