本文整理汇总了PHP中BP_Messages_Thread::get_inbox_count方法的典型用法代码示例。如果您正苦于以下问题:PHP BP_Messages_Thread::get_inbox_count方法的具体用法?PHP BP_Messages_Thread::get_inbox_count怎么用?PHP BP_Messages_Thread::get_inbox_count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BP_Messages_Thread
的用法示例。
在下文中一共展示了BP_Messages_Thread::get_inbox_count方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: messages_get_unread_count
function messages_get_unread_count( $user_id = false ) {
global $bp;
if ( !$user_id )
$user_id = $bp->loggedin_user->id;
return BP_Messages_Thread::get_inbox_count( $user_id );
}
示例2: bp_get_total_unread_messages_count
function bp_get_total_unread_messages_count()
{
return apply_filters('bp_get_total_unread_messages_count', BP_Messages_Thread::get_inbox_count());
}
示例3: messages_get_unread_count
function messages_get_unread_count($user_id = 0)
{
if (empty($user_id)) {
$user_id = bp_loggedin_user_id();
}
return BP_Messages_Thread::get_inbox_count($user_id);
}
示例4: bp_get_total_unread_messages_count
/**
* Get the unread messages count for the current inbox.
*
* @return int
*/
function bp_get_total_unread_messages_count()
{
/**
* Filters the unread messages count for the current inbox.
*
* @since 1.0.0
*
* @param int $value Unread messages count for the current inbox.
*/
return apply_filters('bp_get_total_unread_messages_count', BP_Messages_Thread::get_inbox_count());
}
示例5: messages_get_unread_count
function messages_get_unread_count($user_id = 0)
{
global $bp;
if (empty($user_id)) {
$user_id = $bp->loggedin_user->id;
}
return BP_Messages_Thread::get_inbox_count($user_id);
}