bp_get_groups_pagination_count ()
生成“查看z组的x-y”分页消息。
描述
返回
(字符串)
源
文件:bp-groups / bp-groups-template.php
函数bp_get_groups_pagination_count(){全局$groups_template;$start_num = intval(($ group_template ->pag_page - 1) * $ group_template ->pag_num) + 1;$from_num = bp_core_number_format($start_num);$to_num = bp_core_number_format(($start_num + ($ group_template ->pag_num - 1) > $ group_template ->total_group_count) ?$ group_template ->pag_num: $start_num + ($ group_template ->pag_num - 1));$total = bp_core_number_format($ group_template ->total_group_count);$message = sprintf(_n('查看1组','查看%1$s - %2$s of %3$s groups', $ group_template ->total_group_count, 'buddyboss'), $from_num, $to_num, $total);/** *过滤“查看z组的x-y”分页消息。* * @since BuddyPress 1.5.0 * * @param string $message "查看z组的x-y "文本。* @param string $from_num范围内低值的总数。 * @param string $to_num Total amount for the high value in the range. * @param string $total Total amount of groups found. */ return apply_filters( 'bp_get_groups_pagination_count', $message, $from_num, $to_num, $total ); }
更新日志
版本 | 描述 |
---|---|
BuddyPress 1.5.0 | 介绍了。 |