Hide a field from non-editors
add_filter(‘frm_field_type’, ‘change_my_field_type’, 10, 2); function change_my_field_type($type, $field){ if(in_array($field->id, array(125,126,127))){ //change 125, 126, and 127 to the ids of fields to hide if(!is_admin() and !current_user_can(‘editor’))//if current user is not an editor $type = ‘hidden’; //hide the fields } return $type; }Continue reading