00 Day
00 Hour
00 Min
00 Sec

Reply To: Roles or Edit only in the same Location

Home Forums HRM Roles or Edit only in the same Location Reply To: Roles or Edit only in the same Location

#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.

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We received your query

We will reply to you very soon :)