change capability
-
I found that the solution mentioned of adding a filter to change the capability needed to access hidden fields did not work for me unless a value was returned by a function. So here’s what I put in my functions.php that worked to change the capability in the way that I needed:
function change_capability ($param) {
return ‘bp_moderate’;
}
add_filter( ‘bp_admin_only_profile_fields_cap’, ‘change_capability’ );https://ww.wp.xz.cn/plugins/buddypress-admin-only-profile-fields/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘change capability’ is closed to new replies.