bp_获取_文件夹_链接()
返回文件夹说明。
描述
回来
(字符串)文档文件夹描述。
来源
文件:bp文档/bp-document-template.php
函数bp_get_folder_link(){global$document_template,$document_folder_template;$url='';如果(isset($document_template)&&isset($document_template->document->group_id)&$document_template->document->group_->id>0&&bp_处于活动状态('groups'){$group=groups_get_group($document_template->document->group_id);$group_link=bp_get_group_permalink($group);$url=trailingslashit($group_link.'documents/folders/'.bp_get_folder_id())}elseif(isset($document_folder_template)&&isset($document_folder_template->folder->folder)&&isset($document文件夹)&&isset($document文件夹->文件夹->组id&&&$document\u folder\u template->folder->group\u id>0{$group=groups\u get\u group($document\u folder\u template->folder->group\u id);$group\u link=bp\u get\u group\u permalink($group);$url=trailingslashit($group\u link.'documents/folders/'.bp\u get\u folder\u id())}elseif(isset($document\u folder\u template)&&isset($document\u folder\u template->folder->isset($document\u folder\u template->folder->user\u id)){$url=trailingslashit(bp\u core\u get\u user\u domain($document\u folder\u template->folder->->user\u id);}其他{$url=trailingslashit(bp\u core\u\u get\u user\u domain($document\u template->user\u id)->user\u id)“.document/folders/”.bp_get_folder_id());}/***筛选正在显示的文件夹描述。**@自BuddyBoss 1.4.0以来**@param int$id筛选文档文件夹描述。*/return apply_筛选('bp_get_folder_link',$url);”
变更日志
版本 | 描述 |
---|---|
Buddyboss1.4.0 | 介绍。 |