bp_xprofile_get_user_progress_data($ profile_groups.$ profile_phototype.$ widget_id.的)

函数通过检查数据是否已在瞬态中存在返回用户进度数据。如果否然后遵循检查进度逻辑。

描述

清除瞬态时1)小部件表单设置更新。2)更新了用户配置文件时。3)当添加/更新/删除的新配置文件字段时。

参数

$设置

大批的)(必需的)- 选择的FieldSet设置为在进度和配置文件或封面照片中显示以显示正在进行的照片。

返回

(大批)$ user_progress - 用户进度呈现配置文件完成

来源

文件:bp-core / drecated / buddyboss / 1.5.3.php

函数bp_xprofile_get_user_progress_data($ profile_groups,$ profile_phototype,$ widget_id){$ user_progress = array();//检查数据是否有瞬态。$ pc_traneient_name = bp_xprofile_get_profile_completion_traneient_name(bp_core_get_profile_completion_key(),$ widget_id);$ pc_transient_data = get_transient($ pc_transient_name);if(!空($ pc_transient_data)){$ user_progress = $ pc_transient_data;} else {//记录在用户进度。$ user_progress_arr = bp_xprofile_get_user_progress($ profile_groups,$ profile_phototype);//格式化用户进度数组将传递到模板。$ user_progress = bp_xprofile_get_user_progress_formatted($ user_progress_arr);//使用3小时的到期设置瞬态。 set_transient( $pc_transient_name, $user_progress, HOUR_IN_SECONDS * 3 ); } return $user_progress; }

变更乐

变更乐
版本 描述
Buddyboss 1.4.9. 介绍。

问题?

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