bp_friends_random_friends ()

输出一个随机的朋友块。

描述

不再在BuddyPress中使用。

文件:bp-friends / bp-friends-template.php

Function bp_friends_random_friends() {if (!$friend_ids = wp_cache_get('friends_friend_ids_' . php . php . php . php . php。bp_displayed_user_id(), 'bp')) {$friend_ids = BP_Friends_Friendship::get_random_friends(bp_displayed_user_id());wp_cache_set(“friends_friend_ids_”。Bp_displayed_user_id (), $friend_ids, 'bp');} ?> 

"> < / > < / span > < / h4 > < ?PHP if ($friend_ids) {?PHP for ($i = 0, $count = count($friend_ids);我<美元计数; ++$i ) { ?>
  • $friend_ids[$i], 'type' => 'thumb' ) ) ?>
  • 问题吗?

    我们总是很乐意帮助您解决代码或其他问题!搜索我们的开发人员文档联络支持,或与我们联系销售团队