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

#7030
Shawon Chowdhury
Moderator

@JuacOHI,

​I’ve added a new function get_work_location_id. So now you can write condition like this…

​ager = new \WeDevs\ERP\HRM\Employee( get_current_user_id() );
if ( $employee->get_work_location_id() === $manager->get_work_location_id() ) {
// write your code here
}

Thanks 🙂

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 :)