我正在创建一个基于buddypress 2.0的wordpress小部件 . 此小部件将简单地在侧栏中输出显示的用户的进度条和百分比 .
我've already written the main code for the widget and I'm使用此功能 bppp_progression_block($user_id)
输出侧栏中的进度条 . 该函数来自另一个名为buddypress-profile-progression的插件 . 该函数在此插件中定义 .
如何在会员的 Profiles 页面之外使该功能正常工作?
这是我的wordpress小部件的主要代码:
$user_id = bp_loggedin_user_id(); // Get the logged in user's id
echo bppp_get_progression_block($user_id); // Output the progress bar
2 回答
这对我有用:
在bppp-template.php中更改50-52行:
至:
在第67行更改:
至:
在71-73行改变:
只是:
从以下更改118:
至:
请问插件作者更好's not a BuddyPress function, but BuddyPress Profile Progression plugin. So it' . 它的支持在这里:https://wordpress.org/support/plugin/buddypress-profile-progression