我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在Buddypress中复制/获取当前用户通知

How to replicate buddypress notifications that are in menu? I already have the avatar and the domain, but am not finding solutions for getting the notification count + url to current user ID's notifications.

This funtions return the notification count for a user id:

bp_notifications_get_unread_notification_count(bp_loggedin_user_id());

and this return the notifications:

bp_notifications_get_notifications_for_user(bp_loggedin_user_id());

近期文章

  • 如何迭代上传的图像文件
  • 如何使用laravel管理id
  • Laravel没有检测到带有axios的json
  • Laravel 5.4作曲家错误
  • 如何不用PHP脚本创建新行
  • Symfony Doctrine - 查询之后的OrderBy
  • 将jQuery生成的值传递给PHP Mail
  • 联系表格与Php和Ajax发送部分电子邮件
  • 加入查询问题 - codeigniter
  • 在仪表板的woocommerce电子邮件设置选项卡中添加字段
  • AJAX和PHP将“HTTP get request”发送到同一页面
  • 显示所有匹配的值而不是第一个
  • Slim Framework:将HTTP请求路由到静态类方法
  • MySQL表中的同名字段相互覆盖 - Laravel
  • yii2条件验证设置值为NULL
  • 正则表达式将长字符串分隔成短语并存储在数组中
  • 访问对象的属性作为laravel中where子句中的键
  • 如何解决“您的SQL语法中有错误。”错误消息
  • admin-ajax.php?action = woocommerce_feature_product 403错误
  • 如何释放Xcode中的链接列表

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华