Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: lock profile editing from non administrators


_ck_
Participant

@_ck_

make it into a mini-plugin, ie.

<?php
/*
Plugin Name: No Profit Edit
*/
function bb_tweaks_no_profile_edit($retvalue, $capability, $args) {
if ($capability=="edit_user") {return bb_current_user_can( 'administrate');}
return $retvalue;
}
add_filter('bb_current_user_can', 'bb_tweaks_no_profile_edit',10,3);
?>

Save it as no-profile-edit.php put into my-plugins and activate.

Make sure you don’t put any spaces at the beginning or end of the file.

Skip to toolbar