Home › Forums › HRM › Roles or Edit only in the same Location › Reply To: Roles or Edit only in the same Location
May 10, 2017 at 1:54 am
#7014
JuacOHI
Participant
Mhm.. sadly I’m not so good in PHP or making plugins to make one for custom roles and things like that.. For me its easier to add some line of code and “fix/patch” it to what i need..
Can you help me with this ?, how can i ask to get the current user work location ? so i could add an IF asking something like this:
if ( $employee->get_work_location () == current_user_work_location () ){
With that line of code i could get what i want, i just don’t know how to get the current user work location.