00 Day
00 Hour
00 Min
00 Sec

Reply To: Syntax for updating data

Home Forums General Syntax for updating data Reply To: Syntax for updating data

#70000
Gordian
Participant

This is my code inside class-employee.php, update employee function of hrm module.

//update user einformed if license_date was changed
if ( isset( $posted[‘license_date’] ) && $posted[‘license_date’] !== $this->erp_user->license_date ) {

$this->erp_user->update( [ ‘user_id’ => $this->user_id, ‘einformed’ => ‘no’ ] );

if ( is_wp_error( $result ) ) {
return $result;
}
}

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